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, wait
getLocalEntry
public 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()
Registry
public void addListener(Registry.Listener<K,V> listener)
Registry
addListener
in interface Registry<K,V>
listener
- a registry listenerpublic void removeListener(Registry.Listener<K,V> listener)
Registry
removeListener
in interface Registry<K,V>
listener
- a registry listenerpublic Group getGroup()
Registry
public Map<K,V> getEntries()
Registry
getEntries
in interface Registry<K,V>
public Map.Entry<K,V> getEntry(Node node)
Registry
public 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 © 2018 JBoss by Red Hat. All rights reserved.