All Superinterfaces:
AsyncCache <K,V>
, BasicCache <K,V>
, ConcurrentMap <K,V>
, Lifecycle
, Map <K,V>
, RemoteCache <K,V>
, TransactionalCache
All Known Implementing Classes:
DelegatingRemoteCache
, InvalidatedNearRemoteCache
, RemoteCacheImpl
public interface InternalRemoteCache<K,V>
extends RemoteCache <K,V>
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry <K ,V >
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
io.netty.channel.Channel
Add a client listener to handle near cache with bloom filter optimization
The listener object must be annotated with @
ClientListener
annotation.
clear (org.infinispan.api.common.CacheOptions options)
Returns client-side statistics for this cache.
entries (org.infinispan.api.common.CacheOptions options)
estimateSize (org.infinispan.api.common.CacheOptions options)
int
get (K key,
org.infinispan.api.common.CacheOptions options)
getAll (Set <K > keys,
org.infinispan.api.common.CacheOptions options)
getAll (org.infinispan.api.common.CacheOptions options,
K [] keys)
getAndRemove (K key,
org.infinispan.api.common.CacheOptions options)
org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher
getEntry (K key,
org.infinispan.api.common.CacheOptions options)
byte[]
org.infinispan.client.hotrod.impl.operations.CacheOperationsFactory
getOrReplaceEntry (K key,
V value,
org.infinispan.api.common.CacheEntryVersion version,
org.infinispan.api.common.CacheWriteOptions options)
CompletionStage <org.infinispan.client.hotrod.impl.operations.GetWithMetadataOperation.GetWithMetadataResult<V >>
boolean
void
init (Configuration configuration,
org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher)
void
init (Configuration configuration,
org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher,
ObjectName jmxParent)
keys (org.infinispan.api.common.CacheOptions options)
byte[]
listen (org.infinispan.api.common.events.cache.CacheListenerOptions options,
org.infinispan.api.common.events.cache.CacheEntryEventType[] types)
Resets all applied flags back to the defaults.
<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)
put (K key,
V value,
org.infinispan.api.common.CacheWriteOptions options)
putAll (Flow.Publisher <org.infinispan.api.common.CacheEntry<K ,V >> entries,
org.infinispan.api.common.CacheWriteOptions options)
putAll (Map <K ,V > entries,
org.infinispan.api.common.CacheWriteOptions options)
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)
remove (K key,
org.infinispan.api.common.CacheOptions options)
removeAll (Set <K > keys,
org.infinispan.api.common.CacheWriteOptions options)
default boolean
default boolean
replace (K key,
V value,
org.infinispan.api.common.CacheEntryVersion version,
org.infinispan.api.common.CacheWriteOptions options)
void
default void
set (K key,
V value,
org.infinispan.api.common.CacheWriteOptions options)
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.
Applies one or more
Flag
s 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 , continuousQuery , getName , getVersion , merge , merge , put , put , put , putIfAbsent , putIfAbsent , query , replace , replace
Methods 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 , values
Method Details
getNameBytes
byte[] getNameBytes ()
removeEntry
default boolean removeEntry (K key,
V value)
withFlags
Applies one or more
Flag
s to the scope of a single invocation. See the
Flag
enumeration to for
information on available flags.
Sample usage:
remoteCache.withFlags(Flag.FORCE_RETURN_VALUE).put("hello", "world");
Specified by:
withFlags
in interface RemoteCache <K ,V >
Parameters:
flags
-
Returns:
a RemoteCache instance with the flag added if necessary
noFlags
Resets all applied flags back to the defaults. Note that
Flag.FORCE_RETURN_VALUE
will be cleared as well
even if it was set via configuration.
Specified by:
noFlags
in interface RemoteCache <K ,V >
Returns:
a RemoteCache instance with no flags applied to it
flagInt
int flagInt ()
Returns:
flags set as an int
hasForceReturnFlag
boolean hasForceReturnFlag ()
resolveStorage
void resolveStorage ()
init
void init (Configuration configuration,
org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher)
init
void init (Configuration configuration,
org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher dispatcher,
ObjectName jmxParent)
getDispatcher
org.infinispan.client.hotrod.impl.transport.netty.OperationDispatcher getDispatcher ()
ping
CompletionStage <org.infinispan.client.hotrod.impl.operations.PingResponse> ping ()
addNearCacheListener
io.netty.channel.Channel addNearCacheListener (Object listener,
int bloomBits)
Add a client listener to handle near cache with bloom filter optimization
The listener object must be annotated with @
ClientListener
annotation.
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
org.infinispan.client.hotrod.impl.operations.CacheOperationsFactory getOperationsFactory ()
configuration
CompletionStage <org.infinispan.api.configuration.CacheConfiguration> configuration ()
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)
put
CompletionStage <org.infinispan.api.common.CacheEntry<K ,V >> put (K key,
V value,
org.infinispan.api.common.CacheWriteOptions options)
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
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)
entries
Flow.Publisher <org.infinispan.api.common.CacheEntry<K ,V >> entries (org.infinispan.api.common.CacheOptions 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)
getAndRemoveAll
Flow.Publisher <org.infinispan.api.common.CacheEntry<K ,V >> getAndRemoveAll (Set <K > keys,
org.infinispan.api.common.CacheWriteOptions options)
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
<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)
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)