Package org.infinispan.hotrod.near
Class NearCacheService<K,V>
java.lang.Object
org.infinispan.hotrod.near.NearCacheService<K,V>
Near cache service, manages the lifecycle of the near cache.
- Since:
- 14.0
-
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, Consumer<org.infinispan.api.common.CacheEntry<K, V>> removedConsumer) intbyte[]iterator()voidvoidputIfAbsent(org.infinispan.api.common.CacheEntry<K, V> entry) booleanvoidintsize()start(RemoteCache<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
-
create
public static <K,V> NearCacheService<K,V> create(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier) -
put
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceNearCache<K,V>
-
remove
-
get
-
clear
public void clear() -
size
public int size() -
iterator
-
setInvalidationCallback
-
getBloomFilterBits
public int getBloomFilterBits() -
getListenerId
public byte[] getListenerId() -
calculateBloomBits
public byte[] calculateBloomBits()
-