All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.hotrod.HotRodSyncQuery Maven / Gradle / Ivy

package org.infinispan.hotrod;

import java.util.Map;

import org.infinispan.api.common.CacheOptions;
import org.infinispan.api.common.process.CacheProcessor;
import org.infinispan.api.common.process.CacheProcessorOptions;
import org.infinispan.api.sync.SyncCacheEntryProcessor;
import org.infinispan.api.sync.SyncQuery;
import org.infinispan.api.sync.SyncQueryResult;
import org.infinispan.api.sync.events.cache.SyncCacheContinuousQueryListener;
import org.infinispan.hotrod.impl.cache.RemoteQuery;

/**
 * @since 14.0
 **/
public class HotRodSyncQuery implements SyncQuery {
   private final RemoteQuery query;

   HotRodSyncQuery(String query, CacheOptions options) {
      this.query = new RemoteQuery(query, options);
   }

   @Override
   public SyncQuery param(String name, Object value) {
      query.param(name, value);
      return this;
   }

   @Override
   public SyncQuery skip(long skip) {
      query.skip(skip);
      return this;
   }

   @Override
   public SyncQuery limit(int limit) {
      query.limit(limit);
      return this;
   }

   @Override
   public SyncQueryResult find() {
      throw new UnsupportedOperationException();
   }

   @Override
   public  AutoCloseable findContinuously(SyncCacheContinuousQueryListener listener) {
      throw new UnsupportedOperationException();
   }

   @Override
   public int execute() {
      throw new UnsupportedOperationException();
   }

   @Override
   public  Map process(SyncCacheEntryProcessor processor, CacheProcessorOptions options) {
      throw new UnsupportedOperationException();
   }

   @Override
   public  Map process(CacheProcessor processor, CacheProcessorOptions options) {
      throw new UnsupportedOperationException();
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy