org.infinispan.hotrod.HotRodSyncQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-hotrod-jakarta Show documentation
Show all versions of infinispan-hotrod-jakarta Show documentation
Infinispan Hot Rod Client Jakarta EE
The newest version!
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();
}
}