public class DelegatingEventSource extends AbstractResourceDescriptionChangeEventSource implements IResourceDescription.Event.Listener, OnChangeEvictingCache.Listener
Constructor and Description |
---|
DelegatingEventSource(IResourceDescription.Event.Source source) |
Modifier and Type | Method and Description |
---|---|
void |
descriptionsChanged(IResourceDescription.Event event)
The source will invoce this method to announce changed resource.
|
void |
initialize() |
void |
onEvict(OnChangeEvictingCache.CacheAdapter cache) |
addListener, addListeners, notifyListeners, removeListener, removeListeners
public DelegatingEventSource(IResourceDescription.Event.Source source)
public void initialize()
public void descriptionsChanged(IResourceDescription.Event event)
IResourceDescription.Event.Listener
The source will invoce this method to announce changed resource. The event will never be
null
. However, it may contain an empty list of deltas.
Listeners are free to remove themselves from the sender of the event or add other listeners. However added listeners will not be informed about the current change.
This event may be fired asynchronously. It is ensured that the changed resources will provide the content as it was when the change has been announced to the sender of the event.
descriptionsChanged
in interface IResourceDescription.Event.Listener
event
- the fired event. Will never be null
.public void onEvict(OnChangeEvictingCache.CacheAdapter cache)
onEvict
in interface OnChangeEvictingCache.Listener