Interface InternalRemoteCache<K,V>
- All Superinterfaces:
org.infinispan.commons.api.AsyncCache<K,,V> org.infinispan.commons.api.BasicCache<K,,V> ConcurrentMap<K,,V> org.infinispan.commons.api.Lifecycle,Map<K,,V> RemoteCache<K,,V> org.infinispan.commons.api.TransactionalCache
- All Known Implementing Classes:
DelegatingRemoteCache,InvalidatedNearRemoteCache,RemoteCacheImpl,TransactionalRemoteCacheImpl
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddNearCacheListener(Object listener, int bloomBits) Add a client listener to handle near cache with bloom filter optimization The listener object must be annotated with @ClientListenerannotation.Returns client-side statistics for this cache.entryIterator(org.infinispan.commons.util.IntSet segments) getWithMetadataAsync(K key, SocketAddress preferredAddres) booleanvoidinit(OperationsFactory operationsFactory, Configuration configuration) voidinit(OperationsFactory operationsFactory, Configuration configuration, ObjectName jmxParent) booleanorg.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments) byte[]keyToBytes(Object o) ping()default booleanremoveEntry(Map.Entry<K, V> entry) default booleanremoveEntry(K key, V value) voidresolveStorage(boolean objectStorage) default voidresolveStorage(org.infinispan.commons.dataconversion.MediaType key, org.infinispan.commons.dataconversion.MediaType value, boolean objectStorage) Sends the current bloom filter to the listener node where a near cache listener is installed.<T,U> InternalRemoteCache <T, U> withDataFormat(DataFormat dataFormat) Return a new instance ofRemoteCacheusing the suppliedDataFormat.Applies one or moreFlags to the scope of a single invocation.Methods inherited from interface org.infinispan.commons.api.AsyncCache
clearAsync, computeAsync, computeAsync, computeAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfAbsentAsync, computeIfPresentAsync, computeIfPresentAsync, computeIfPresentAsync, containsKeyAsync, getAllAsync, getAsync, mergeAsync, mergeAsync, mergeAsync, putAsync, putAsync, putAsync, putIfAbsentAsync, putIfAbsentAsync, putIfAbsentAsync, removeAsync, removeAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, replaceAsync, sizeAsyncMethods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, continuousQuery, getName, getVersion, merge, merge, put, put, put, putIfAbsent, putIfAbsent, query, replace, replaceMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace, replaceAllMethods inherited from interface org.infinispan.commons.api.Lifecycle
start, stopMethods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, sizeMethods inherited from interface org.infinispan.client.hotrod.RemoteCache
addClientListener, addClientListener, entrySet, entrySet, execute, execute, execute, getAll, getCacheTopologyInfo, getDataFormat, getProtocolVersion, getRemoteCacheContainer, getRemoteCacheManager, getWithMetadata, getWithMetadataAsync, isTransactional, keySet, keySet, publishEntries, publishEntriesByQuery, publishEntriesWithMetadata, putAll, putAll, putAll, putAllAsync, putAllAsync, putAllAsync, remove, remove, removeClientListener, removeWithVersion, removeWithVersionAsync, replace, replace, replace, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersion, replaceWithVersionAsync, replaceWithVersionAsync, replaceWithVersionAsync, replaceWithVersionAsync, retrieveEntries, retrieveEntries, retrieveEntries, retrieveEntriesByQuery, retrieveEntriesWithMetadata, serverStatistics, serverStatisticsAsync, streaming, values, valuesMethods inherited from interface org.infinispan.commons.api.TransactionalCache
getTransactionManager
-
Method Details
-
keyIterator
org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments) -
entryIterator
-
removeEntry
-
removeEntry
-
getWithMetadataAsync
RetryAwareCompletionStage<MetadataValue<V>> getWithMetadataAsync(K key, SocketAddress preferredAddres) -
withFlags
Description copied from interface:RemoteCacheApplies one or moreFlags to the scope of a single invocation. See theFlagenumeration to for information on available flags. Sample usage:remoteCache.withFlags(Flag.FORCE_RETURN_VALUE).put("hello", "world");- Specified by:
withFlagsin interfaceRemoteCache<K,V> - Parameters:
flags-- Returns:
- the current RemoteCache instance to continue running operations on.
-
withDataFormat
Description copied from interface:RemoteCacheReturn a new instance ofRemoteCacheusing the suppliedDataFormat.- Specified by:
withDataFormatin interfaceRemoteCache<K,V>
-
hasForceReturnFlag
boolean hasForceReturnFlag() -
resolveStorage
void resolveStorage(boolean objectStorage) -
resolveStorage
default void resolveStorage(org.infinispan.commons.dataconversion.MediaType key, org.infinispan.commons.dataconversion.MediaType value, boolean objectStorage) -
clientStatistics
ClientStatistics clientStatistics()Description copied from interface:RemoteCacheReturns client-side statistics for this cache.- Specified by:
clientStatisticsin interfaceRemoteCache<K,V>
-
init
-
init
-
getOperationsFactory
OperationsFactory getOperationsFactory() -
isObjectStorage
boolean isObjectStorage() -
keyToBytes
-
ping
CompletionStage<PingResponse> ping() -
addNearCacheListener
Add a client listener to handle near cache with bloom filter optimization The listener object must be annotated with @ClientListenerannotation. -
updateBloomFilter
CompletionStage<Void> updateBloomFilter()Sends the current bloom filter to the listener node where a near cache listener is installed. If this cache does not have near caching this will return an already completed stage.- Returns:
- stage that when complete the filter was sent to the listener node
-