Class NearCacheService<K,V>
java.lang.Object
org.infinispan.client.hotrod.near.NearCacheService<K,V>
- All Implemented Interfaces:
Iterable<Map.Entry<K,
,MetadataValue<V>>> NearCache<K,
V>
Near cache service, manages the lifecycle of the near cache.
- Since:
- 7.1
-
Constructor Summary
ModifierConstructorDescriptionprotected
NearCacheService
(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
void
clear()
static <K,
V> NearCacheService <K, V> create
(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier) createNearCache
(NearCacheConfiguration config, BiConsumer<K, MetadataValue<V>> removedConsumer) int
byte[]
iterator()
boolean
putIfAbsent
(K key, MetadataValue<V> value) boolean
boolean
remove
(K key, MetadataValue<V> value) boolean
replace
(K key, MetadataValue<V> prevValue, MetadataValue<V> newValue) void
int
size()
start
(InternalRemoteCache<K, V> remote) void
stop
(RemoteCache<K, V> remote) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
NearCacheService
-
-
Method Details
-
start
-
stop
-
createNearCache
protected NearCache<K,V> createNearCache(NearCacheConfiguration config, BiConsumer<K, MetadataValue<V>> removedConsumer) -
create
public static <K,V> NearCacheService<K,V> create(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier) -
replace
-
putIfAbsent
- Specified by:
putIfAbsent
in interfaceNearCache<K,
V>
-
remove
-
remove
-
get
-
clear
public void clear() -
size
public int size() -
iterator
-
setInvalidationCallback
-
getBloomFilterBits
public int getBloomFilterBits() -
getListenerId
public byte[] getListenerId() -
calculateBloomBits
public byte[] calculateBloomBits()
-