K - key typeV - value typepublic class CacheRegistry<K,V> extends Object implements Registry<K,V>, org.infinispan.filter.KeyFilter<Object>
Registry backed by an Infinispan cache.Registry.Listener<K,V>| Constructor and Description |
|---|
CacheRegistry(CacheRegistryFactoryConfiguration<K,V> config,
RegistryEntryProvider<K,V> provider) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Object key) |
void |
addListener(Registry.Listener<K,V> listener)
Adds a listener to this registry.
|
void |
close()
Removes our entry from the registry.
|
void |
event(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<Node,Map.Entry<K,V>> event) |
Map<K,V> |
getEntries()
Returns all registry entries in this group.
|
Map.Entry<K,V> |
getEntry(Node node)
Returns the registry entry for the specified node.
|
Group |
getGroup()
Returns the group associated with this factory.
|
void |
removed(org.infinispan.notifications.cachelistener.event.CacheEntryRemovedEvent<Node,Map.Entry<K,V>> event) |
void |
removeListener(Registry.Listener<K,V> listener)
Adds a listener from this registry.
|
void |
topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<Node,Map.Entry<K,V>> event) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocalEntrypublic CacheRegistry(CacheRegistryFactoryConfiguration<K,V> config, RegistryEntryProvider<K,V> provider)
public boolean accept(Object key)
accept in interface org.infinispan.filter.KeyFilter<Object>public void close()
Registrypublic void addListener(Registry.Listener<K,V> listener)
RegistryaddListener in interface Registry<K,V>listener - a registry listenerpublic void removeListener(Registry.Listener<K,V> listener)
RegistryremoveListener in interface Registry<K,V>listener - a registry listenerpublic Group getGroup()
Registrypublic Map<K,V> getEntries()
RegistrygetEntries in interface Registry<K,V>public Map.Entry<K,V> getEntry(Node node)
Registrypublic void topologyChanged(org.infinispan.notifications.cachelistener.event.TopologyChangedEvent<Node,Map.Entry<K,V>> event)
public void event(org.infinispan.notifications.cachelistener.event.CacheEntryEvent<Node,Map.Entry<K,V>> event)
Copyright © 2023 JBoss by Red Hat. All rights reserved.