@ThreadSafe public class ClusterRegistryImpl<S,K,V> extends Object implements ClusterRegistry<S,K,V>
| Modifier and Type | Field and Description |
|---|---|
static String |
GLOBAL_REGISTRY_CACHE_NAME |
| Constructor and Description |
|---|
ClusterRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(S scope,
KeyFilter keyFilter,
Object listener)
Adds a listener that is notified of changes to keys in a given scope and which match a given
KeyFilter. |
void |
addListener(S scope,
Object listener)
Adds a listener that is notified of changes to keys in a given scope.
|
void |
clear(S scope) |
void |
clearAll() |
boolean |
containsKey(S scope,
K key) |
V |
get(S scope,
K key) |
void |
init(EmbeddedCacheManager cacheManager) |
Set<K> |
keys(S scope) |
V |
put(S scope,
K key,
V value) |
V |
remove(S scope,
K key) |
void |
removeListener(Object listener)
Detaches a listener instance.
|
public static final String GLOBAL_REGISTRY_CACHE_NAME
public void init(EmbeddedCacheManager cacheManager)
public boolean containsKey(S scope, K key)
containsKey in interface ClusterRegistry<S,K,V>public void clearAll()
clearAll in interface ClusterRegistry<S,K,V>public void addListener(S scope, Object listener)
ClusterRegistryaddListener in interface ClusterRegistry<S,K,V>scope - the scope to watchlistener - a properly annotated listener instancepublic void addListener(S scope, KeyFilter keyFilter, Object listener)
ClusterRegistryKeyFilter.addListener in interface ClusterRegistry<S,K,V>scope - the scope to watchlistener - a properly annotated listener instancepublic void removeListener(Object listener)
ClusterRegistryremoveListener in interface ClusterRegistry<S,K,V>listener - the listener to detachCopyright © 2016 JBoss, a division of Red Hat. All rights reserved.