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.Serializable
    Class 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.
    Since:
    GemFire 4.2.3
    See Also:
    Region.registerInterest(Object), Region.registerInterestRegex(String), Serialized Form
    • Constructor Detail

      • InterestResultPolicy

        protected InterestResultPolicy​(java.lang.String name,
                                       int ordinal)
    • Method Detail

      • readResolve

        protected java.lang.Object readResolve()
                                        throws java.io.ObjectStreamException
        Throws:
        java.io.ObjectStreamException
      • fromOrdinal

        public static InterestResultPolicy fromOrdinal​(byte ordinal)
        Returns the InterestResultPolicy represented by specified ordinal
        Parameters:
        ordinal - the ordinal representation of an InterestResultPolicy
        Returns:
        the InterestResultPolicy represented 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 this InterestResultPolicy is NONE.
        Returns:
        true if this InterestResultPolicy is NONE.
      • isKeys

        public boolean isKeys()
        Returns true if this InterestResultPolicy is KEYS.
        Returns:
        true if this InterestResultPolicy is KEYS.
      • isKeysValues

        public boolean isKeysValues()
        Returns true if this InterestResultPolicy is KEYS_VALUES.
        Returns:
        true if this InterestResultPolicy is KEYS_VALUES.
      • isDefault

        public boolean isDefault()
        Returns true if this InterestResultPolicy is the default.
        Returns:
        true if this InterestResultPolicy is the default.
      • toString

        public java.lang.String toString()
        Returns a string representation for this InterestResultPolicy.
        Overrides:
        toString in class java.lang.Object
        Returns:
        the name of this data policy.