|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
KeyType
- Type of the key object for the map being queriedValueType
- Type of the value object for the map being queriedpublic interface ContinuousQueryCache<KeyType,ValueType>
A Continuous Query Cache contains the keys and optionally the values that match a defined continuous query. The contents of this cache arrive asynchronously from the grid for which the query is defined. If the query is defined such that only the keys are stored in the continuous query cache then all operations that return a value will return null.
Method Summary | |
---|---|
boolean |
containsKey(KeyType key)
Returns true if the cache contains the given key. |
boolean |
containsValue(ValueType value)
Returns true if the cache contains the given value. |
ValueType |
get(KeyType key)
Returns the value for the given key. |
List<SessionHandle> |
getSessionHandles(KeyType key)
Returns SessionHandle objects that can be used to retrieve
all query matches associated with this key. |
boolean |
includesValues()
Returns true if this cache includes the values associated with the keys that have matched the query. |
Set<KeyType> |
keySnapshot()
Returns a Set view of a snapshot of the keys contained in the cache. |
int |
size()
Return the number of keys in the cache. |
Method Detail |
---|
Set<KeyType> keySnapshot()
int size()
ValueType get(KeyType key)
key
- - the key whose associated value is to be returned
List<SessionHandle> getSessionHandles(KeyType key)
SessionHandle
objects that can be used to retrieve
all query matches associated with this key.
key
- - the key for which SessionHandles will be returned
boolean containsKey(KeyType key)
key
- - key to check for
boolean containsValue(ValueType value)
value
- - value to check for
boolean includesValues()
containsValue(Object)
and get(Object)
will return usable values, otherwise they will return null.
ContinuousQueryManager.defineContinuousQuery(java.lang.String, com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryFilter, boolean, boolean, boolean, java.util.Collection>, boolean, boolean, java.lang.Integer...)
|
IBM WebSphereTM eXtreme Scale, Release 8.6 API Specification |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |