Class NearCacheService<K,V>
- java.lang.Object
-
- org.infinispan.client.hotrod.near.NearCacheService<K,V>
-
public class NearCacheService<K,V> extends Object
Near cache service, manages the lifecycle of the near cache.- Since:
- 7.1
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
NearCacheService(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 void
clear()
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)
void
put(K key, MetadataValue<V> value)
void
putIfAbsent(K key, MetadataValue<V> value)
boolean
remove(K key)
void
setInvalidationCallback(Runnable r)
int
size()
void
start(RemoteCache<K,V> remote)
void
stop(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(Runnable r)
-
-