KeyType - Type of the key object for the map being queriedValueType - Type of the value object for the map being queried@Deprecated public interface ContinuousQueryCache<KeyType,ValueType>
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(KeyType key)
Deprecated.
Returns true if the cache contains the given key.
|
boolean |
containsValue(ValueType value)
Deprecated.
Returns true if the cache contains the given value.
|
ValueType |
get(KeyType key)
Deprecated.
Returns the value for the given key.
|
List<SessionHandle> |
getSessionHandles(KeyType key)
Deprecated.
Returns
SessionHandle objects that can be used to retrieve
all query matches associated with this key. |
boolean |
includesValues()
Deprecated.
Returns true if this cache includes the values associated with the keys that have matched the query.
|
Set<KeyType> |
keySnapshot()
Deprecated.
Returns a Set view of a snapshot of the keys contained in the cache.
|
int |
size()
Deprecated.
Return the number of keys in the cache.
|
Set<KeyType> keySnapshot()
int size()
ValueType get(KeyType key)
key - - the key whose associated value is to be returnedList<SessionHandle> getSessionHandles(KeyType key)
SessionHandle objects that can be used to retrieve
all query matches associated with this key.
This method can only be invoked when using a PER_CONTAINER placement strategy for the map.key - - the key for which SessionHandles will be returnedMapSet.getPlacementStrategy()boolean containsKey(KeyType key)
key - - key to check forboolean containsValue(ValueType value)
value - - value to check forboolean 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<com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryListener<KeyType, ValueType>>, boolean, com.ibm.websphere.objectgrid.OutputFormat, java.util.List<java.lang.Integer>)