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, wait
init, initialize
public void onEvent(CqEvent aCqEvent)
onEvent
in interface CqListener
aCqEvent
- the CqEvent
that triggered the listenerCqQuery.executeWithInitialResults()
public void onError(CqEvent aCqEvent)
onError
in interface CqListener
aCqEvent
- the CqEvent
which encountered the errorpublic 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 CacheCallback
CacheCallback.close()