Class NearCacheService<K,V>
- java.lang.Object
-
- org.infinispan.client.hotrod.near.NearCacheService<K,V>
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNearCacheService(NearCacheConfiguration config, org.infinispan.client.hotrod.event.impl.ClientListenerNotifier listenerNotifier)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()static <K,V>
NearCacheService<K,V>create(NearCacheConfiguration config, org.infinispan.client.hotrod.event.impl.ClientListenerNotifier listenerNotifier)protected NearCache<K,V>createNearCache(NearCacheConfiguration config)MetadataValue<V>get(K key)voidput(K key, MetadataValue<V> value)voidputIfAbsent(K key, MetadataValue<V> value)booleanremove(K key)voidsetInvalidationCallback(Runnable r)intsize()voidstart(RemoteCache<K,V> remote)voidstop(RemoteCache<K,V> remote)
-
-
-
Constructor Detail
-
NearCacheService
protected NearCacheService(NearCacheConfiguration config, org.infinispan.client.hotrod.event.impl.ClientListenerNotifier listenerNotifier)
-
-
Method Detail
-
start
public void start(RemoteCache<K,V> remote)
-
stop
public void stop(RemoteCache<K,V> remote)
-
createNearCache
protected NearCache<K,V> createNearCache(NearCacheConfiguration config)
-
create
public static <K,V> NearCacheService<K,V> create(NearCacheConfiguration config, org.infinispan.client.hotrod.event.impl.ClientListenerNotifier listenerNotifier)
-
putIfAbsent
public void putIfAbsent(K key, MetadataValue<V> value)
- Specified by:
putIfAbsentin interfaceNearCache<K,V>
-
setInvalidationCallback
public void setInvalidationCallback(Runnable r)
-
-