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 TypeMethodDescriptionio.netty.channel.ChanneladdNearCacheListener(Object listener, int bloomBits) Add a client listener to handle near cache with bloom filter optimization The listener object must be annotated with @ClientListenerannotation.clear(org.infinispan.api.common.CacheOptions options) Returns client-side statistics for this cache.CompletionStage<org.infinispan.api.configuration.CacheConfiguration> Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> entries(org.infinispan.api.common.CacheOptions options) entryIterator(org.infinispan.commons.util.IntSet segments) estimateSize(org.infinispan.api.common.CacheOptions options) intflagInt()Similar toRemoteCache.flags()except it returns the flags as an int instead of a set of enumsFlow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options) Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> getAndRemoveAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> getAndRemoveAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options) CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> byte[]CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> getOrReplaceEntry(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) getWithMetadataAsync(K key, io.netty.channel.Channel channel) booleanvoidinit(Configuration configuration, OperationDispatcher dispatcher) voidinit(Configuration configuration, OperationDispatcher dispatcher, ObjectName jmxParent) org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments) keys(org.infinispan.api.common.CacheOptions options) byte[]keyToBytes(Object o) Flow.Publisher<org.infinispan.api.common.events.cache.CacheEntryEvent<K, V>> listen(org.infinispan.api.common.events.cache.CacheListenerOptions options, org.infinispan.api.common.events.cache.CacheEntryEventType[] types) noFlags()Resets all applied flags back to the defaults.ping()<T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K, T>> process(Set<K> keys, org.infinispan.api.async.AsyncCacheEntryProcessor<K, V, T> task, org.infinispan.api.common.CacheOptions options) <T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K, T>> processAll(org.infinispan.api.async.AsyncCacheEntryProcessor<K, V, T> processor, org.infinispan.api.common.process.CacheProcessorOptions options) CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> entries, org.infinispan.api.common.CacheWriteOptions options) CompletionStage<org.infinispan.api.common.CacheEntry<K, V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options) removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) default booleanremoveEntry(Map.Entry<K, V> entry) default booleanremoveEntry(K key, V value) replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) voiddefault voidresolveStorage(org.infinispan.commons.dataconversion.MediaType key, org.infinispan.commons.dataconversion.MediaType value) setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) 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, flags, 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
-
getNameBytes
byte[] getNameBytes() -
keyIterator
org.infinispan.commons.util.CloseableIterator<K> keyIterator(org.infinispan.commons.util.IntSet segments) -
entryIterator
-
removeEntry
-
removeEntry
-
getWithMetadataAsync
CompletionStage<GetWithMetadataOperation.GetWithMetadataResult<V>> getWithMetadataAsync(K key, io.netty.channel.Channel channel) -
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:
- a RemoteCache instance with the flag added if necessary
-
noFlags
InternalRemoteCache<K,V> noFlags()Description copied from interface:RemoteCacheResets all applied flags back to the defaults. Note thatFlag.FORCE_RETURN_VALUEwill be cleared as well even if it was set via configuration.- Specified by:
noFlagsin interfaceRemoteCache<K,V> - Returns:
- a RemoteCache instance with no flags applied to it
-
flagInt
int flagInt()Similar toRemoteCache.flags()except it returns the flags as an int instead of a set of enums- Returns:
- flags set as an int
-
withDataFormat
Description copied from interface:RemoteCacheReturn a new instance ofRemoteCacheusing the suppliedDataFormat.- Specified by:
withDataFormatin interfaceRemoteCache<K,V>
-
hasForceReturnFlag
boolean hasForceReturnFlag() -
resolveStorage
void resolveStorage() -
resolveStorage
default void resolveStorage(org.infinispan.commons.dataconversion.MediaType key, org.infinispan.commons.dataconversion.MediaType value) -
clientStatistics
ClientStatistics clientStatistics()Description copied from interface:RemoteCacheReturns client-side statistics for this cache.- Specified by:
clientStatisticsin interfaceRemoteCache<K,V>
-
init
-
init
-
getDispatcher
OperationDispatcher getDispatcher() -
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
-
getOperationsFactory
CacheOperationsFactory getOperationsFactory() -
getListenerNotifier
ClientListenerNotifier getListenerNotifier() -
configuration
CompletionStage<org.infinispan.api.configuration.CacheConfiguration> configuration() -
get
-
getEntry
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getEntry(K key, org.infinispan.api.common.CacheOptions options) -
putIfAbsent
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> putIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) -
setIfAbsent
CompletionStage<Boolean> setIfAbsent(K key, V value, org.infinispan.api.common.CacheWriteOptions options) -
put
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> put(K key, V value, org.infinispan.api.common.CacheWriteOptions options) -
set
-
replace
CompletionStage<Boolean> replace(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) -
getOrReplaceEntry
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getOrReplaceEntry(K key, V value, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheWriteOptions options) -
remove
-
remove
CompletionStage<Boolean> remove(K key, org.infinispan.api.common.CacheEntryVersion version, org.infinispan.api.common.CacheOptions options) -
getAndRemove
CompletionStage<org.infinispan.api.common.CacheEntry<K,V>> getAndRemove(K key, org.infinispan.api.common.CacheOptions options) -
keys
-
entries
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> entries(org.infinispan.api.common.CacheOptions options) -
putAll
-
putAll
CompletionStage<Void> putAll(Flow.Publisher<org.infinispan.api.common.CacheEntry<K, V>> entries, org.infinispan.api.common.CacheWriteOptions options) -
getAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(Set<K> keys, org.infinispan.api.common.CacheOptions options) -
getAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAll(org.infinispan.api.common.CacheOptions options, K[] keys) -
removeAll
-
removeAll
Flow.Publisher<K> removeAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
getAndRemoveAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Set<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
getAndRemoveAll
Flow.Publisher<org.infinispan.api.common.CacheEntry<K,V>> getAndRemoveAll(Flow.Publisher<K> keys, org.infinispan.api.common.CacheWriteOptions options) -
estimateSize
-
clear
-
listen
Flow.Publisher<org.infinispan.api.common.events.cache.CacheEntryEvent<K,V>> listen(org.infinispan.api.common.events.cache.CacheListenerOptions options, org.infinispan.api.common.events.cache.CacheEntryEventType[] types) -
process
-
processAll
<T> Flow.Publisher<org.infinispan.api.common.process.CacheEntryProcessorResult<K,T>> processAll(org.infinispan.api.async.AsyncCacheEntryProcessor<K, V, T> processor, org.infinispan.api.common.process.CacheProcessorOptions options)
-