IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.continuousquery
Interface ContinuousQueryListener<KeyType,ValueType>

Type Parameters:
KeyType - Type of the key object for the map being queried
ValueType - Type of the value object for the map being queried

public interface ContinuousQueryListener<KeyType,ValueType>

This interface should be implemented to get a callback for a continuous query. When a Continuous Query listener is added to a Continuous Query Topic, that listener will be called after every change to the current set of results matching the continuous query.

Since:
8.6

Method Summary
 void cacheUpdated(ContinuousQueryNotificationEvent<KeyType,ValueType> event)
          This method will be called by every ContinuousQueryTopic that this listener is added to.
 

Method Detail

cacheUpdated

void cacheUpdated(ContinuousQueryNotificationEvent<KeyType,ValueType> event)
This method will be called by every ContinuousQueryTopic that this listener is added to. The caller will capture any Throwables thrown from calls to this method and create an FFDC entry. This ContinuousQueryListener will not be called again for the same ContinuousQueryNotificationEvent. Additionally, the performance of this ContinuousQueryListener may make an impact on the speed with which other ContinuousQueryListeners are called.

Parameters:
event - - ContinuousQueryNotificationEvent containing information about the change in the query result set
See Also:
ContinuousQueryTopic.addListener(ContinuousQueryListener), ContinuousQueryNotificationEvent

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

© Copyright International Business Machines Corp 2005,2012. All rights reserved.