InternalCacheRegistry
@ThreadSafe @Deprecated 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
Deprecated.
|
Constructor and Description |
---|
ClusterRegistryImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(S scope,
KeyFilter keyFilter,
Object listener)
Deprecated.
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)
Deprecated.
Adds a listener that is notified of changes to keys in a given scope.
|
void |
clear(S scope)
Deprecated.
|
void |
clearAll()
Deprecated.
|
boolean |
containsKey(S scope,
K key)
Deprecated.
|
V |
get(S scope,
K key)
Deprecated.
|
void |
init(EmbeddedCacheManager cacheManager,
InternalCacheRegistry internalCacheRegistry)
Deprecated.
|
Set<K> |
keys(S scope)
Deprecated.
|
void |
put(S scope,
K key,
V value)
Deprecated.
|
void |
put(S scope,
K key,
V value,
long lifespan,
TimeUnit unit)
Deprecated.
|
void |
remove(S scope,
K key)
Deprecated.
|
void |
removeListener(Object listener)
Deprecated.
Detaches a listener instance.
|
protected void |
runCommand(Runnable runnable)
Deprecated.
|
void |
stop()
Deprecated.
|
public static final String GLOBAL_REGISTRY_CACHE_NAME
public void init(EmbeddedCacheManager cacheManager, InternalCacheRegistry internalCacheRegistry)
public void stop()
protected void runCommand(Runnable runnable)
public void put(S scope, K key, V value)
put
in interface ClusterRegistry<S,K,V>
public void put(S scope, K key, V value, long lifespan, TimeUnit unit)
put
in interface ClusterRegistry<S,K,V>
public void remove(S scope, K key)
remove
in interface ClusterRegistry<S,K,V>
public boolean containsKey(S scope, K key)
containsKey
in interface ClusterRegistry<S,K,V>
public void clear(S scope)
clear
in interface ClusterRegistry<S,K,V>
public void clearAll()
clearAll
in interface ClusterRegistry<S,K,V>
public void addListener(S scope, Object listener)
ClusterRegistry
addListener
in interface ClusterRegistry<S,K,V>
scope
- the scope to watchlistener
- a properly annotated listener instancepublic void addListener(S scope, KeyFilter keyFilter, Object listener)
ClusterRegistry
KeyFilter
.addListener
in interface ClusterRegistry<S,K,V>
scope
- the scope to watchlistener
- a properly annotated listener instancepublic void removeListener(Object listener)
ClusterRegistry
removeListener
in interface ClusterRegistry<S,K,V>
listener
- the listener to detachCopyright © 2023 JBoss, a division of Red Hat. All rights reserved.