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
ConstructorsModifierConstructorDescriptionprotectedNearCacheService(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]voidclear()static <K,V> NearCacheService<K, V> create(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier) createNearCache(NearCacheConfiguration config, BiConsumer<K, MetadataValue<V>> removedConsumer) intbyte[]iterator()booleanputIfAbsent(K key, MetadataValue<V> value) booleanbooleanremove(K key, MetadataValue<V> value) booleanreplace(K key, MetadataValue<V> prevValue, MetadataValue<V> newValue) voidintsize()start(InternalRemoteCache<K, V> remote) voidstop(RemoteCache<K, V> remote) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
putIfAbsentin 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()
-