Package org.apache.geode.cache.util
Class CqListenerAdapter
java.lang.Object
org.apache.geode.cache.util.CqListenerAdapter
- All Implemented Interfaces:
CacheCallback,Declarable,CqListener
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()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 aCqAttributesMutator.voidAn error occurred in the processing of a CQ.voidAn event occurred that modifies the results of the query.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.geode.cache.Declarable
init, initialize
-
Constructor Details
-
CqListenerAdapter
public CqListenerAdapter()
-
-
Method Details
-
onEvent
An event occurred that modifies the results of the query. This event does not contain an error.- Specified by:
onEventin interfaceCqListener- Parameters:
aCqEvent- theCqEventthat triggered the listener- See Also:
-
onError
An error occurred in the processing of a CQ. This event does contain an error. The newValue and oldValue in the event may or may not be available, and will be null if not available.- Specified by:
onErrorin interfaceCqListener- Parameters:
aCqEvent- theCqEventwhich encountered the error
-
close
public 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 aCqAttributesMutator.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.
- Specified by:
closein interfaceCacheCallback- See Also:
-