Class NearCacheService<K,V>
- java.lang.Object
-
- org.infinispan.client.hotrod.near.NearCacheService<K,V>
-
-
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 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(java.lang.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 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:
putIfAbsent
in interfaceNearCache<K,V>
-
setInvalidationCallback
public void setInvalidationCallback(java.lang.Runnable r)
-
-