public abstract class CqListenerAdapter extends Object implements CqListener
| Constructor and Description |
|---|
CqListenerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Called when the CQ is closed, the base region is destroyed, when the cache is closed, or when
this listener is removed from a CqQuery using a
CqAttributesMutator. |
void |
onError(CqEvent aCqEvent)
An error occurred in the processing of a CQ.
|
void |
onEvent(CqEvent aCqEvent)
An event occurred that modifies the results of the query.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinit, initializepublic void onEvent(CqEvent aCqEvent)
onEvent in interface CqListenerCqQuery.executeWithInitialResults()public void onError(CqEvent aCqEvent)
onError in interface CqListenerpublic void close()
CqAttributesMutator.
Implementations should cleanup any external resources such as database connections. Any runtime exceptions this method throws will be logged.
It is possible for this method to be called multiple times on a single callback instance, so implementations must be tolerant of this.
close in interface CacheCallbackCacheCallback.close()