Package org.springframework.data.gemfire
Enum Class InterestPolicyType
- All Implemented Interfaces:
Serializable
,Comparable<InterestPolicyType>
,Constable
The InterestPolicyType enum is an enumeration of all the GemFire Subscription, InterestPolicy values.
- Since:
- 1.3.0
- See Also:
-
InterestPolicy
-
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 TypeMethodDescriptionorg.apache.geode.cache.InterestPolicy
Returns the GemFire InterestPolicy corresponding to this SubscriptionType enumerated value.static org.apache.geode.cache.InterestPolicy
getInterestPolicy
(InterestPolicyType interestPolicyType) Null-safe operation to extract the GemFire InterestPolicy from the InterPolicyType enumerated value.static InterestPolicyType
Returns the enum constant of this class with the specified name.static InterestPolicyType
valueOf
(org.apache.geode.cache.InterestPolicy interestPolicy) Returns a SubscriptionType enumerated value for the given GemFire InterestPolicy.static InterestPolicyType
valueOfIgnoreCase
(String value) Returns a SubscriptionType enumerated value for the case-insensitive, named Subscription (InterestsPolicy).static InterestPolicyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALL
-
CACHE_CONTENT
-
-
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
-
getInterestPolicy
public static org.apache.geode.cache.InterestPolicy getInterestPolicy(InterestPolicyType interestPolicyType) Null-safe operation to extract the GemFire InterestPolicy from the InterPolicyType enumerated value.- Parameters:
interestPolicyType
- the InterestPolicyType enum from which to extract GemFire's InterestPolicy- Returns:
- a GemFire InterestPolicy for the given InterestPolicyType enumerated value or null if InterestPolicyType is null.
- See Also:
-
InterestPolicy
-
valueOf
Returns a SubscriptionType enumerated value for the given GemFire InterestPolicy.- Parameters:
interestPolicy
- the GemFire InterestPolicy used to lookup and match a SubscriptionType.- Returns:
- a SubscriptionType enumerated value matching the given GemFire InterestPolicy or null if no matching value was found.
- See Also:
-
InterestPolicy
getInterestPolicy()
-
valueOfIgnoreCase
Returns a SubscriptionType enumerated value for the case-insensitive, named Subscription (InterestsPolicy).- Parameters:
value
- a String name used to look and match the SubscriptionType.- Returns:
- a SubscriptionType enumerated value for the given case-insensitive named Subscription or null if no match was found.
- See Also:
-
getInterestPolicy
public org.apache.geode.cache.InterestPolicy getInterestPolicy()Returns the GemFire InterestPolicy corresponding to this SubscriptionType enumerated value.- Returns:
- the GemFire InterestPolicy corresponding to this SubscriptionType.
- See Also:
-
InterestPolicy
-