Interface CacheOperationsFactory
- All Known Implementing Classes:
DefaultCacheOperationsFactory,DelegatingCacheOperationsFactory,ObjectRoutingCacheOperationsFactory,ServerRoutingCacheOperationsFactory,StatsOperationsFactory,TelemetryCacheOperationsFactory
public interface CacheOperationsFactory
-
Method Summary
Modifier and TypeMethodDescription<T> HotRodOperation<T> executeOperation(String taskName, Map<String, byte[]> marshalledParams, Object key) InternalRemoteCache<?, ?> byte[][]marshallParams(Object[] params) newAddClientListenerOperation(Object listener) newAddClientListenerOperation(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams) newAddNearCacheListenerOperation(Object listener, int bloomBits) <K> HotRodOperation<Boolean> newContainsKeyOperation(K key) newFactoryFor(InternalRemoteCache<?, ?> internalRemoteCache) <K,V> HotRodOperation <Map<K, V>> newGetAllBytesOperation(Set<byte[]> keys) This method should not be invoked by callers normally as it bypasses other factory checks.<V> HotRodOperation<V> newGetOperation(Object key) newGetStreamEndOperation(int id) newGetStreamNextOperation(int id, io.netty.channel.Channel channel) newGetStreamStartOperation(Object key, int batchSize) newGetWithMetadataOperation(K key, io.netty.channel.Channel channel) newIterationEndOperation(byte[] iterationId) <K,E> HotRodOperation <IterationNextResponse<K, E>> newIterationNextOperation(byte[] iterationId, KeyTracker segmentKeyTracker) newIterationStartOperation(String filterConverterFactory, byte[][] filterParams, org.infinispan.commons.util.IntSet segments, int batchSize, boolean metadata) newPrepareTransactionOperation(Xid xid, boolean onePhaseCommit, List<Modification> modifications, boolean recoverable, long timeoutMs) newPutAllBytesOperation(Map<byte[], byte[]> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) This method should not be invoked by callers normally as it bypasses other factory checks.<K,V> HotRodOperation <MetadataValue<V>> newPutIfAbsentOperation(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) <K,V> HotRodOperation <MetadataValue<V>> newPutIfAbsentOperation(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags) <K,V> HotRodOperation <MetadataValue<V>> newPutKeyValueOperation(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) newPutStreamEndOperation(int id) newPutStreamNextOperation(int id, boolean lastChunk, io.netty.buffer.ByteBuf valueBytes, io.netty.channel.Channel channel) newPutStreamStartOperation(Object key, long version, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) <T> QueryOperation<T> newQueryOperation(RemoteQuery<T> ts, boolean withHitCount) newRemoveClientListenerOperation(Object listener) <K,V> HotRodOperation <VersionedOperationResponse<V>> newRemoveIfUnmodifiedOperation(K key, long version) <V> HotRodOperation<MetadataValue<V>> newRemoveOperation(Object key) <K,V> HotRodOperation <VersionedOperationResponse<V>> newReplaceIfUnmodifiedOperation(K key, V value, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit, long version) <K,V> HotRodOperation <V> newReplaceOperation(K key, V valueBytes, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) newUpdateBloomFilterOperation(byte[] bloomFilterBits)
-
Method Details
-
getRemoteCache
InternalRemoteCache<?,?> getRemoteCache() -
newGetOperation
-
newPingOperation
HotRodOperation<PingResponse> newPingOperation() -
executeOperation
<T> HotRodOperation<T> executeOperation(String taskName, Map<String, byte[]> marshalledParams, Object key) -
newPrepareTransactionOperation
PrepareTransactionOperation newPrepareTransactionOperation(Xid xid, boolean onePhaseCommit, List<Modification> modifications, boolean recoverable, long timeoutMs) -
newRemoveClientListenerOperation
-
newIterationStartOperation
HotRodOperation<IterationStartResponse> newIterationStartOperation(String filterConverterFactory, byte[][] filterParams, org.infinispan.commons.util.IntSet segments, int batchSize, boolean metadata) -
newIterationNextOperation
<K,E> HotRodOperation<IterationNextResponse<K,E>> newIterationNextOperation(byte[] iterationId, KeyTracker segmentKeyTracker) -
newIterationEndOperation
-
newClearOperation
HotRodOperation<Void> newClearOperation() -
newPutKeyValueOperation
<K,V> HotRodOperation<MetadataValue<V>> newPutKeyValueOperation(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) -
newRemoveOperation
-
newContainsKeyOperation
-
newReplaceOperation
<K,V> HotRodOperation<V> newReplaceOperation(K key, V valueBytes, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) -
newPutIfAbsentOperation
<K,V> HotRodOperation<MetadataValue<V>> newPutIfAbsentOperation(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) -
newPutIfAbsentOperation
<K,V> HotRodOperation<MetadataValue<V>> newPutIfAbsentOperation(K key, V value, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit, Flag... flags) -
newStatsOperation
HotRodOperation<ServerStatistics> newStatsOperation() -
newSizeOperation
HotRodOperation<Integer> newSizeOperation() -
newPutAllBytesOperation
HotRodOperation<Void> newPutAllBytesOperation(Map<byte[], byte[]> map, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) This method should not be invoked by callers normally as it bypasses other factory checks. Please useinstead, passing this method as the Functioninvalid reference
PutAllBulkOperation(Set)- Parameters:
map-lifespan-lifespanUnit-maxIdleTime-maxIdleTimeUnit-- Returns:
-
newGetAllBytesOperation
This method should not be invoked by callers normally as it bypasses other factory checks. Please useinstead, passing this method as the Functioninvalid reference
GetAllBulkOperation(Set)- Type Parameters:
K-V-- Parameters:
keys-- Returns:
-
newGetWithMetadataOperation
<K,V> HotRodOperation<GetWithMetadataOperation.GetWithMetadataResult<V>> newGetWithMetadataOperation(K key, io.netty.channel.Channel channel) -
newReplaceIfUnmodifiedOperation
<K,V> HotRodOperation<VersionedOperationResponse<V>> newReplaceIfUnmodifiedOperation(K key, V value, long lifespan, TimeUnit lifespanTimeUnit, long maxIdle, TimeUnit maxIdleTimeUnit, long version) -
newRemoveIfUnmodifiedOperation
<K,V> HotRodOperation<VersionedOperationResponse<V>> newRemoveIfUnmodifiedOperation(K key, long version) -
newUpdateBloomFilterOperation
-
newAddNearCacheListenerOperation
-
newQueryOperation
-
newAddClientListenerOperation
-
newAddClientListenerOperation
AddClientListenerOperation newAddClientListenerOperation(Object listener, Object[] filterFactoryParams, Object[] converterFactoryParams) -
newGetStreamStartOperation
-
newGetStreamNextOperation
HotRodOperation<GetStreamNextResponse> newGetStreamNextOperation(int id, io.netty.channel.Channel channel) -
newGetStreamEndOperation
-
newPutStreamStartOperation
HotRodOperation<PutStreamResponse> newPutStreamStartOperation(Object key, long version, long lifespan, TimeUnit lifespanUnit, long maxIdleTime, TimeUnit maxIdleTimeUnit) -
newPutStreamNextOperation
HotRodOperation<Boolean> newPutStreamNextOperation(int id, boolean lastChunk, io.netty.buffer.ByteBuf valueBytes, io.netty.channel.Channel channel) -
newPutStreamEndOperation
-
marshallParams
-
newFactoryFor
-