public class InterestResultPolicy
extends java.lang.Object
implements java.io.Serializable
InterestResultPolicy is an enumerated type for a
register interest result. The result of a call to Region.registerInterest
can be the keys and current values, just the keys or nothing.Region.registerInterest(Object),
Region.registerInterestRegex(String),
Serialized Form| Modifier and Type | Field and Description |
|---|---|
static InterestResultPolicy |
DEFAULT
The
InterestResultPolicy used by default; it is KEYS_VALUES. |
static InterestResultPolicy |
KEYS |
static InterestResultPolicy |
KEYS_VALUES |
static InterestResultPolicy |
NONE |
byte |
ordinal
The ordinal representing this
InterestResultPolicy. |
| Modifier | Constructor and Description |
|---|---|
protected |
InterestResultPolicy(java.lang.String name)
should only be called from InterestResultPolicyImpl
|
| Modifier and Type | Method and Description |
|---|---|
static InterestResultPolicy |
fromOrdinal(byte ordinal)
Returns the
InterestResultPolicy represented by specified ordinal |
byte |
getOrdinal()
Returns the ordinal value.
|
boolean |
isDefault()
Returns true if this
InterestResultPolicy is the default. |
boolean |
isKeys()
Returns true if this
InterestResultPolicy is KEYS. |
boolean |
isKeysValues()
Returns true if this
InterestResultPolicy is KEYS_VALUES. |
boolean |
isNone()
Returns true if this
InterestResultPolicy is NONE. |
protected java.lang.Object |
readResolve() |
java.lang.String |
toString()
Returns a string representation for this
InterestResultPolicy. |
public static final InterestResultPolicy NONE
public static final InterestResultPolicy KEYS
public static final InterestResultPolicy KEYS_VALUES
public static final InterestResultPolicy DEFAULT
InterestResultPolicy used by default; it is KEYS_VALUES.public final byte ordinal
InterestResultPolicy.protected InterestResultPolicy(java.lang.String name)
protected java.lang.Object readResolve()
throws java.io.ObjectStreamException
java.io.ObjectStreamExceptionpublic static InterestResultPolicy fromOrdinal(byte ordinal)
InterestResultPolicy represented by specified ordinalpublic byte getOrdinal()
public boolean isNone()
InterestResultPolicy is NONE.InterestResultPolicy is NONE.public boolean isKeys()
InterestResultPolicy is KEYS.InterestResultPolicy is KEYS.public boolean isKeysValues()
InterestResultPolicy is KEYS_VALUES.InterestResultPolicy is KEYS_VALUES.public boolean isDefault()
InterestResultPolicy is the default.InterestResultPolicy is the default.public java.lang.String toString()
InterestResultPolicy.toString in class java.lang.Object