org.infinispan.hotrod.HotRodMutinyQuery Maven / Gradle / Ivy
The newest version!
package org.infinispan.hotrod;
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.api.mutiny.MutinyCacheEntryProcessor;
import org.infinispan.api.mutiny.MutinyQuery;
import org.infinispan.api.mutiny.MutinyQueryResult;
import org.infinispan.hotrod.impl.cache.RemoteQuery;
import io.smallrye.mutiny.Multi;
import io.smallrye.mutiny.Uni;
/**
* @since 14.0
**/
public class HotRodMutinyQuery implements MutinyQuery {
private final RemoteQuery query;
HotRodMutinyQuery(String query, CacheOptions options) {
this.query = new RemoteQuery(query, options);
}
@Override
public MutinyQuery param(String name, Object value) {
query.param(name, value);
return this;
}
@Override
public MutinyQuery skip(long skip) {
query.skip(skip);
return this;
}
@Override
public MutinyQuery limit(int limit) {
query.limit(limit);
return this;
}
@Override
public Uni> find() {
throw new UnsupportedOperationException();
}
@Override
public Multi> findContinuously() {
throw new UnsupportedOperationException();
}
@Override
public Uni execute() {
throw new UnsupportedOperationException();
}
@Override
public Multi> process(MutinyCacheEntryProcessor processor, CacheProcessorOptions options) {
throw new UnsupportedOperationException();
}
@Override
public Multi> process(CacheProcessor processor, CacheProcessorOptions options) {
throw new UnsupportedOperationException();
}
}