VMware GemFire Java API Reference
Package org.apache.geode.cache
Class InterestResultPolicy
- java.lang.Object
-
- org.apache.geode.cache.InterestResultPolicy
-
- All Implemented Interfaces:
java.io.Serializable
public class InterestResultPolicy extends java.lang.Object implements java.io.SerializableClassInterestResultPolicyis 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.- Since:
- GemFire 4.2.3
- See Also:
Region.registerInterest(Object),Region.registerInterestRegex(String), Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static InterestResultPolicyDEFAULTTheInterestResultPolicyused by default; it isKEYS_VALUES.static InterestResultPolicyKEYSstatic InterestResultPolicyKEYS_VALUESstatic InterestResultPolicyNONEbyteordinalThe ordinal representing thisInterestResultPolicy.
-
Constructor Summary
Constructors Modifier Constructor Description protectedInterestResultPolicy(java.lang.String name, int ordinal)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InterestResultPolicyfromOrdinal(byte ordinal)Returns theInterestResultPolicyrepresented by specified ordinalbytegetOrdinal()Returns the ordinal value.booleanisDefault()Returns true if thisInterestResultPolicyis the default.booleanisKeys()Returns true if thisInterestResultPolicyisKEYS.booleanisKeysValues()Returns true if thisInterestResultPolicyisKEYS_VALUES.booleanisNone()Returns true if thisInterestResultPolicyisNONE.protected java.lang.ObjectreadResolve()java.lang.StringtoString()Returns a string representation for thisInterestResultPolicy.
-
-
-
Field Detail
-
NONE
@Immutable public static final InterestResultPolicy NONE
-
KEYS
@Immutable public static final InterestResultPolicy KEYS
-
KEYS_VALUES
@Immutable public static final InterestResultPolicy KEYS_VALUES
-
DEFAULT
@Immutable public static final InterestResultPolicy DEFAULT
TheInterestResultPolicyused by default; it isKEYS_VALUES.
-
ordinal
public final byte ordinal
The ordinal representing thisInterestResultPolicy.
-
-
Method Detail
-
readResolve
protected java.lang.Object readResolve() throws java.io.ObjectStreamException- Throws:
java.io.ObjectStreamException
-
fromOrdinal
public static InterestResultPolicy fromOrdinal(byte ordinal)
Returns theInterestResultPolicyrepresented by specified ordinal- Parameters:
ordinal- the ordinal representation of anInterestResultPolicy- Returns:
- the
InterestResultPolicyrepresented by specified ordinal
-
getOrdinal
public byte getOrdinal()
Returns the ordinal value.- Returns:
- the ordinal value
- Since:
- GemFire 5.0
-
isNone
public boolean isNone()
Returns true if thisInterestResultPolicyisNONE.- Returns:
- true if this
InterestResultPolicyisNONE.
-
isKeys
public boolean isKeys()
Returns true if thisInterestResultPolicyisKEYS.- Returns:
- true if this
InterestResultPolicyisKEYS.
-
isKeysValues
public boolean isKeysValues()
Returns true if thisInterestResultPolicyisKEYS_VALUES.- Returns:
- true if this
InterestResultPolicyisKEYS_VALUES.
-
isDefault
public boolean isDefault()
Returns true if thisInterestResultPolicyis the default.- Returns:
- true if this
InterestResultPolicyis the default.
-
toString
public java.lang.String toString()
Returns a string representation for thisInterestResultPolicy.- Overrides:
toStringin classjava.lang.Object- Returns:
- the name of this data policy.
-
-