Class NearCacheService<K,V>
- java.lang.Object
-
- org.infinispan.client.hotrod.near.NearCacheService<K,V>
-
public class NearCacheService<K,V> extends java.lang.ObjectNear cache service, manages the lifecycle of the near cache.- Since:
- 7.1
-
-
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 org.infinispan.client.hotrod.near.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(java.lang.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 org.infinispan.client.hotrod.near.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)
-
put
public void put(K key, MetadataValue<V> value)
-
putIfAbsent
public void putIfAbsent(K key, MetadataValue<V> value)
-
remove
public boolean remove(K key)
-
get
public MetadataValue<V> get(K key)
-
clear
public void clear()
-
size
public int size()
-
setInvalidationCallback
public void setInvalidationCallback(java.lang.Runnable r)
-
-