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

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

package org.infinispan.hotrod;

import java.util.concurrent.CompletionStage;
import java.util.concurrent.Flow;

import org.infinispan.api.async.AsyncCacheEntryProcessor;
import org.infinispan.api.async.AsyncQuery;
import org.infinispan.api.async.AsyncQueryResult;
import org.infinispan.api.common.CacheOptions;
import org.infinispan.api.common.events.cache.CacheContinuousQueryEvent;
import org.infinispan.api.common.process.CacheEntryProcessorResult;
import org.infinispan.api.common.process.CacheProcessor;
import org.infinispan.api.common.process.CacheProcessorOptions;
import org.infinispan.hotrod.impl.cache.RemoteQuery;

/**
 * @since 14.0
 **/
public class HotRodAsyncQuery implements AsyncQuery {
   private final RemoteQuery query;

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

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

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

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

   @Override
   public CompletionStage> find() {
      return null;
   }

   @Override
   public Flow.Publisher> findContinuously(String query) {
      return null;
   }

   @Override
   public CompletionStage execute() {
      return null;
   }

   @Override
   public  Flow.Publisher> process(AsyncCacheEntryProcessor processor, CacheProcessorOptions options) {
      return null;
   }

   @Override
   public  Flow.Publisher> process(CacheProcessor processor, CacheProcessorOptions options) {
      return null;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy