public class ClusterCacheInvalidationRequestSender extends Object implements CacheEntryRemovedListener, CacheEntryUpdatedListener
This is feature intended only when separate local caches are maintained by each node in the cluster.
| Constructor and Description |
|---|
ClusterCacheInvalidationRequestSender() |
| Modifier and Type | Method and Description |
|---|---|
void |
entryRemoved(CacheEntryEvent event)
Called after the entry has been removed.
|
void |
entryUpdated(CacheEntryEvent event)
todo change this to have two args: the old value and the new value
Called after the entry has been updated (put into the cache where a previous mapping existed).
|
void |
send(CacheEntryEvent cacheEntryEvent)
We will invalidate the particular cache in other nodes whenever
there is an remove/update of the local cache in the current node.
|
public ClusterCacheInvalidationRequestSender()
public void entryRemoved(CacheEntryEvent event) throws CacheEntryListenerException
CacheEntryRemovedListenerentryRemoved in interface CacheEntryRemovedListenerevent - The entry just removed.CacheEntryListenerException - if there is problem executing the listenerCacheEntryRemovedListener.entryRemoved(CacheEntryEvent)public void entryUpdated(CacheEntryEvent event) throws CacheEntryListenerException
CacheEntryUpdatedListenerentryUpdated in interface CacheEntryUpdatedListenerevent - The event just updated.CacheEntryListenerException - if there is problem executing the listenerpublic void send(CacheEntryEvent cacheEntryEvent)
Copyright © 2018 WSO2 Inc. All rights reserved.