Package org.infinispan.hotrod.near
Class NearCacheService<K,V>
- java.lang.Object
-
- org.infinispan.hotrod.near.NearCacheService<K,V>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNearCacheService(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]calculateBloomBits()voidclear()static <K,V>
NearCacheService<K,V>create(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)protected NearCache<K,V>createNearCache(NearCacheConfiguration config, Consumer<org.infinispan.api.common.CacheEntry<K,V>> removedConsumer)org.infinispan.api.common.CacheEntry<K,V>get(K key)intgetBloomFilterBits()byte[]getListenerId()Iterator<org.infinispan.api.common.CacheEntry<K,V>>iterator()voidput(org.infinispan.api.common.CacheEntry<K,V> entry)voidputIfAbsent(org.infinispan.api.common.CacheEntry<K,V> entry)booleanremove(K key)voidsetInvalidationCallback(Runnable r)intsize()SocketAddressstart(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, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
NearCacheService
protected NearCacheService(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)
-
-
Method Detail
-
start
public SocketAddress start(RemoteCache<K,V> remote)
-
stop
public void stop(RemoteCache<K,V> remote)
-
createNearCache
protected NearCache<K,V> createNearCache(NearCacheConfiguration config, Consumer<org.infinispan.api.common.CacheEntry<K,V>> removedConsumer)
-
create
public static <K,V> NearCacheService<K,V> create(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)
-
putIfAbsent
public void putIfAbsent(org.infinispan.api.common.CacheEntry<K,V> entry)
- Specified by:
putIfAbsentin interfaceNearCache<K,V>
-
setInvalidationCallback
public void setInvalidationCallback(Runnable r)
-
getBloomFilterBits
public int getBloomFilterBits()
-
getListenerId
public byte[] getListenerId()
-
calculateBloomBits
public byte[] calculateBloomBits()
-
-