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 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) |
protected NearCacheService(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)
public void start(RemoteCache<K,V> remote)
public void stop(RemoteCache<K,V> remote)
protected NearCache<K,V> createNearCache(NearCacheConfiguration config)
public static <K,V> NearCacheService<K,V> create(NearCacheConfiguration config, ClientListenerNotifier listenerNotifier)
public void putIfAbsent(K key, MetadataValue<V> value)
putIfAbsent
in interface NearCache<K,V>
public void setInvalidationCallback(Runnable r)
Copyright © 2021 JBoss by Red Hat. All rights reserved.