IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

com.ibm.websphere.objectgrid.continuousquery
Enum ContinuousQueryNotificationEvent.Reason

java.lang.Object
  extended by java.lang.Enum<ContinuousQueryNotificationEvent.Reason>
      extended by com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryNotificationEvent.Reason
All Implemented Interfaces:
Serializable, Comparable<ContinuousQueryNotificationEvent.Reason>
Enclosing interface:
ContinuousQueryNotificationEvent<KeyType,ValueType>

public static enum ContinuousQueryNotificationEvent.Reason
extends Enum<ContinuousQueryNotificationEvent.Reason>

Indicates the reason a notification event has occurred for this cache entry.


Enum Constant Summary
ADDED
          The cache entry was inserted into the grid and matches the query, or an entry which did not match the query was updated such that it now matches the query.
CLEAR
          A cache entry which matched the query was removed from the grid due to a map clear operation.
REMOVED
          The cache entry, which previously matched the query, was removed from the grid or updated such that it no longer matches.
UPDATED
          The cache entry, which previously matched the query, was updated and still matches the query.
 
Method Summary
static ContinuousQueryNotificationEvent.Reason valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ContinuousQueryNotificationEvent.Reason[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADDED

public static final ContinuousQueryNotificationEvent.Reason ADDED
The cache entry was inserted into the grid and matches the query, or an entry which did not match the query was updated such that it now matches the query.


REMOVED

public static final ContinuousQueryNotificationEvent.Reason REMOVED
The cache entry, which previously matched the query, was removed from the grid or updated such that it no longer matches.


UPDATED

public static final ContinuousQueryNotificationEvent.Reason UPDATED
The cache entry, which previously matched the query, was updated and still matches the query. Note: The result of getValue() for REMOVE events will always be null, even if the query was defined to include values.

See Also:
ContinuousQueryManager.defineContinuousQuery(java.lang.String, com.ibm.websphere.objectgrid.continuousquery.ContinuousQueryFilter, boolean, boolean, boolean, java.util.Collection>, boolean, boolean, java.lang.Integer...)

CLEAR

public static final ContinuousQueryNotificationEvent.Reason CLEAR
A cache entry which matched the query was removed from the grid due to a map clear operation.

Method Detail

values

public static ContinuousQueryNotificationEvent.Reason[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ContinuousQueryNotificationEvent.Reason c : ContinuousQueryNotificationEvent.Reason.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ContinuousQueryNotificationEvent.Reason valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

IBM WebSphereTM eXtreme Scale, Release 8.6
API Specification

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