Class InterestType
java.lang.Object
org.apache.geode.cache.operations.InterestType
Enumeration for various interest types.
- Since:
- GemFire 5.5
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final InterestTypeFor registering interest in a specific key.static final InterestTypeFor registering interest in a list of keys.static final InterestTypeFor registering interest in all keys matching a regular expression.static final bytestatic final bytestatic final byte -
Method Summary
Modifier and TypeMethodDescriptionstatic InterestTypefromOrdinal(byte ordinal) Returns theInterestTyperepresented by specified ordinal.booleanisKey()Returns true if this is a key interest type.booleanisList()Returns true if this is a key list interest type.booleanReturns true if this is a regular expression interest type.byteReturns the ordinal for this interest type.toString()Returns a string representation for this interest type.
-
Field Details
-
TP_KEY
public static final byte TP_KEY- See Also:
-
TP_REGEX
public static final byte TP_REGEX- See Also:
-
TP_LIST
public static final byte TP_LIST- See Also:
-
KEY
For registering interest in a specific key. -
LIST
For registering interest in a list of keys. -
REGULAR_EXPRESSION
For registering interest in all keys matching a regular expression.
-
-
Method Details
-
isKey
public boolean isKey()Returns true if this is a key interest type.- Returns:
- whether this is a key interest type
-
isList
public boolean isList()Returns true if this is a key list interest type.- Returns:
- whether this is a key list interest type
-
isRegularExpression
public boolean isRegularExpression()Returns true if this is a regular expression interest type.- Returns:
- whether this is a regular expression interest type
-
fromOrdinal
Returns theInterestTyperepresented by specified ordinal.- Parameters:
ordinal- the ordinal of theInterestTypeto return- Returns:
- the
InterestTyperepresented by specified ordinal
-
toOrdinal
public byte toOrdinal()Returns the ordinal for this interest type.- Returns:
- the ordinal of this interest type.
-
toString
Returns a string representation for this interest type.
-