public class NearCacheService<K,V> extends Object
Modifier | Constructor and Description |
---|---|
protected |
NearCacheService(NearCacheConfiguration config,
ClientListenerNotifier listenerNotifier) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static <K,V> NearCacheService<K,V> |
create(NearCacheConfiguration config,
ClientListenerNotifier listenerNotifier) |
protected org.infinispan.client.hotrod.near.NearCache<K,V> |
createNearCache(NearCacheConfiguration config) |
VersionedValue<V> |
get(K key) |
void |
put(K key,
VersionedValue<V> value) |
void |
putIfAbsent(K key,
VersionedValue<V> value) |
void |
remove(K key) |
void |
start(RemoteCache<K,V> remote) |
void |
stop(RemoteCache<K,V> remote) |
protected NearCacheService(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)
public void start(RemoteCache<K,V> remote)
public void stop(RemoteCache<K,V> remote)
protected org.infinispan.client.hotrod.near.NearCache<K,V> createNearCache(NearCacheConfiguration config)
public static <K,V> NearCacheService<K,V> create(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)
public void put(K key, VersionedValue<V> value)
public void putIfAbsent(K key, VersionedValue<V> value)
public void remove(K key)
public VersionedValue<V> get(K key)
public void clear()
Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.