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>
Method Summary
All Methods Instance Methods Abstract Methods Default Methods
Add a client listener to handle near cache with bloom filter optimization
The listener object must be annotated with @
ClientListener
annotation.
Returns client-side statistics for this cache.
org.infinispan.client.hotrod.impl.operations.OperationsFactory
org.infinispan.client.hotrod.impl.operations.RetryAwareCompletionStage<MetadataValue <V >>
boolean
void
init (org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory,
Configuration configuration)
void
init (org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory,
Configuration configuration,
ObjectName jmxParent)
boolean
byte[]
default boolean
default boolean
void
default void
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 , getName , getVersion , merge , merge , put , put , put , putIfAbsent , putIfAbsent , replace , replace
Methods inherited from interface org.infinispan.client.hotrod.RemoteCache
addClientListener , addClientListener , entrySet , entrySet , execute , 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 Details
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 >
Returns:
the current RemoteCache instance to continue running operations on.
hasForceReturnFlag
boolean hasForceReturnFlag ()
resolveStorage
void resolveStorage (boolean objectStorage)
init
void init (org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory,
Configuration configuration,
ObjectName jmxParent)
init
void init (org.infinispan.client.hotrod.impl.operations.OperationsFactory operationsFactory,
Configuration configuration)
getOperationsFactory
org.infinispan.client.hotrod.impl.operations.OperationsFactory getOperationsFactory ()
isObjectStorage
boolean isObjectStorage ()
ping
CompletionStage <org.infinispan.client.hotrod.impl.operations.PingResponse> ping ()
addNearCacheListener
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