Enum Class SubscriptionEvictionPolicy

java.lang.Object
java.lang.Enum<SubscriptionEvictionPolicy>
org.springframework.data.gemfire.server.SubscriptionEvictionPolicy
All Implemented Interfaces:
Serializable, Comparable<SubscriptionEvictionPolicy>, Constable

public enum SubscriptionEvictionPolicy extends Enum<SubscriptionEvictionPolicy>
Enumeration of the various client subscription policies for CacheServer.
Since:
1.1.0
Author:
Costin Leau, John Blum
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static SubscriptionEvictionPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SubscriptionEvictionPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • valueOfIgnoreCase

      public static SubscriptionEvictionPolicy valueOfIgnoreCase(String name)
      Returns the value of the given String name as a SubscriptionEvictionPolicy enum using a case-insensitive, equality comparison.
      Parameters:
      name - the String name of a SubscriptionEvictionPolicy enumerated value.
      Returns:
      a SubscriptionEvictionPolicy enumerated value given a String name or null if no enum value with name was found.
      See Also:
    • setEvictionPolicy

      public ClientSubscriptionConfig setEvictionPolicy(ClientSubscriptionConfig config)
      Null-safe utility method for setting the client's subscription eviction policy on the configuration meta-data.
      Parameters:
      config - a GemFire ClientSubscriptionConfig object holding the configuration setting and meta-data about the client's subscription configuration.
      Returns:
      the ClientSubscriptionConfig object.
      See Also: