public class InvalidationEventHubImpl extends Object implements InvalidationEventHub
InvalidationListener
s.Modifier | Constructor and Description |
---|---|
protected |
InvalidationEventHubImpl(boolean productionMode) |
Modifier and Type | Method and Description |
---|---|
void |
addInvalidationCallback(Runnable callback)
Adds a callback that is invoked when an underlying tracked resource has changed.
|
void |
addInvalidationListener(InvalidationListener listener)
Adds a listener, who needs to know when an underlying resource of a given category has changed (so that the
receiver may discard any cached data that may have been invalidated).
|
void |
clearOnInvalidation(Map<?,?> map)
Adds a callback that clears the map.
|
protected void |
fireInvalidationEvent()
Notifies all listeners/callbacks.
|
protected InvalidationEventHubImpl(boolean productionMode)
protected final void fireInvalidationEvent()
public final void addInvalidationCallback(Runnable callback)
InvalidationEventHub
addInvalidationCallback
in interface InvalidationEventHub
public final void clearOnInvalidation(Map<?,?> map)
InvalidationEventHub
clearOnInvalidation
in interface InvalidationEventHub
public final void addInvalidationListener(InvalidationListener listener)
InvalidationEventHub
addInvalidationListener
in interface InvalidationEventHub
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.