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
public interface InternalRemoteCache<K,V> extends RemoteCache<K,V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SocketAddressaddNearCacheListener(Object listener, int bloomBits)Add a client listener to handle near cache with bloom filter optimization The listener object must be annotated with @ClientListenerannotation.ClientStatisticsclientStatistics()Returns client-side statistics for this cache.org.infinispan.commons.util.CloseableIterator<Map.Entry<K,V>>entryIterator(org.infinispan.commons.util.IntSet segments)OperationsFactorygetOperationsFactory()RetryAwareCompletionStage<MetadataValue<V>>getWithMetadataAsync(K key, SocketAddress preferredAddres)booleanhasForceReturnFlag()voidinit(OperationsFactory operationsFactory, Configuration configuration)voidinit(OperationsFactory operationsFactory, Configuration configuration, ObjectName jmxParent)booleanisObjectStorage()KkeyAsObjectIfNeeded(Object key)org.infinispan.commons.util.CloseableIterator<K>keyIterator(org.infinispan.commons.util.IntSet segments)byte[]keyToBytes(Object o)CompletionStage<PingResponse>ping()default booleanremoveEntry(Map.Entry<K,V> entry)default booleanremoveEntry(K key, V value)voidresolveStorage(boolean objectStorage)CompletionStage<Void>updateBloomFilter()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.InternalRemoteCache<K,V>withFlags(Flag... flags)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, sizeAsync
-
Methods inherited from interface org.infinispan.commons.api.BasicCache
compute, compute, computeIfAbsent, computeIfAbsent, computeIfPresent, computeIfPresent, getName, getVersion, merge, merge, put, put, put, putIfAbsent, putIfAbsent, replace, replace
-
Methods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, replace, replaceAll
-
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, size
-
Methods inherited from interface org.infinispan.client.hotrod.RemoteCache
addClientListener, addClientListener, entrySet, entrySet, execute, execute, getAll, getCacheTopologyInfo, getDataFormat, getListeners, 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, stats, streaming, values, values
-
-
-
-
Method Detail
-
keyIterator
org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments)
-
entryIterator
org.infinispan.commons.util.CloseableIterator<Map.Entry<K,V>> entryIterator(org.infinispan.commons.util.IntSet segments)
-
getWithMetadataAsync
RetryAwareCompletionStage<MetadataValue<V>> getWithMetadataAsync(K key, SocketAddress preferredAddres)
-
withFlags
InternalRemoteCache<K,V> withFlags(Flag... flags)
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>- Returns:
- the current RemoteCache instance to continue running operations on.
-
withDataFormat
<T,U> InternalRemoteCache<T,U> withDataFormat(DataFormat dataFormat)
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)
-
clientStatistics
ClientStatistics clientStatistics()
Description copied from interface:RemoteCacheReturns client-side statistics for this cache.- Specified by:
clientStatisticsin interfaceRemoteCache<K,V>
-
init
void init(OperationsFactory operationsFactory, Configuration configuration, ObjectName jmxParent)
-
init
void init(OperationsFactory operationsFactory, Configuration configuration)
-
getOperationsFactory
OperationsFactory getOperationsFactory()
-
isObjectStorage
boolean isObjectStorage()
-
keyToBytes
byte[] keyToBytes(Object o)
-
ping
CompletionStage<PingResponse> ping()
-
addNearCacheListener
SocketAddress addNearCacheListener(Object listener, int bloomBits)
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
-
-