public class InterestResultPolicy extends Object implements 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(String name,
int ordinal) |
| 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 Object |
readResolve() |
String |
toString()
Returns a string representation for this
InterestResultPolicy. |
@Immutable public static final InterestResultPolicy NONE
@Immutable public static final InterestResultPolicy KEYS
@Immutable public static final InterestResultPolicy KEYS_VALUES
@Immutable public static final InterestResultPolicy DEFAULT
InterestResultPolicy used by default; it is KEYS_VALUES.public final byte ordinal
InterestResultPolicy.protected InterestResultPolicy(String name, int ordinal)
protected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionpublic static InterestResultPolicy fromOrdinal(byte ordinal)
InterestResultPolicy represented by specified ordinalordinal - the ordinal representation of an InterestResultPolicyInterestResultPolicy 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.