Enum Class SubscriptionEvictionPolicy
java.lang.Object
java.lang.Enum<SubscriptionEvictionPolicy>
org.springframework.data.gemfire.server.SubscriptionEvictionPolicy
- All Implemented Interfaces:
Serializable
,Comparable<SubscriptionEvictionPolicy>
,Constable
Enumeration of the various client subscription policies for
CacheServer
.- Since:
- 1.1.0
- Author:
- Costin Leau, John Blum
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionNull-safe utility method for setting the client's subscription eviction policy on the configuration meta-data.static SubscriptionEvictionPolicy
Returns the enum constant of this class with the specified name.static SubscriptionEvictionPolicy
valueOfIgnoreCase
(String name) Returns the value of the given String name as a SubscriptionEvictionPolicy enum using a case-insensitive, equality comparison.static SubscriptionEvictionPolicy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENTRY
-
MEM
-
NONE
-
-
Field Details
-
DEFAULT
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
valueOfIgnoreCase
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
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:
-