Enum Class OrderPolicyType
- All Implemented Interfaces:
Serializable
,Comparable<OrderPolicyType>
,Constable
The OrderPolicyType class is an enumeration of GemFire Gateway Order Policies.
- Since:
- 1.7.0
- See Also:
-
GatewaySender.OrderPolicy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.geode.cache.wan.GatewaySender.OrderPolicy
Gets the GemFire Gateway.OrderPolicy corresponding to this OrderPolicyType enum.static org.apache.geode.cache.wan.GatewaySender.OrderPolicy
getOrderPolicy
(OrderPolicyType orderPolicyType) Null-safe operation to extract the matching GemFire Gateway.OrderPolicy enumerated value from the specified OrderPolicyType.static OrderPolicyType
Returns the enum constant of this class with the specified name.static OrderPolicyType
valueOf
(org.apache.geode.cache.wan.GatewaySender.OrderPolicy orderPolicy) Returns the matching OrderPolicyType given a GemFire Gateway.OrderPolicy enumerated value.static OrderPolicyType
valueOfIgnoreCase
(String name) Returns a matching OrderPolicyType given the case-insensitive, name of the GemFire Gateway OrderPolicy.static OrderPolicyType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
KEY
-
PARTITION
-
THREAD
-
-
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
-
getOrderPolicy
public static org.apache.geode.cache.wan.GatewaySender.OrderPolicy getOrderPolicy(OrderPolicyType orderPolicyType) Null-safe operation to extract the matching GemFire Gateway.OrderPolicy enumerated value from the specified OrderPolicyType.- Parameters:
orderPolicyType
- the OrderPolicyType enum from which to extract the GemFire-based Gateway.OrderPolicy enumerated value.- Returns:
- the GemFire Gateway.OrderPolicy enumerated value for the given OrderPolicyType.
- See Also:
-
GatewaySender.OrderPolicy
getOrderPolicy()
-
valueOf
public static OrderPolicyType valueOf(org.apache.geode.cache.wan.GatewaySender.OrderPolicy orderPolicy) Returns the matching OrderPolicyType given a GemFire Gateway.OrderPolicy enumerated value.- Parameters:
orderPolicy
- the GemFire Gateway.OrderPolicy enumerated value used to match the desired OrderPolicyType.- Returns:
- a OrderPolicyType matching the given GemFire Gateway.OrderPolicy enumerated value.
- See Also:
-
GatewaySender.OrderPolicy
getOrderPolicy()
-
valueOfIgnoreCase
Returns a matching OrderPolicyType given the case-insensitive, name of the GemFire Gateway OrderPolicy.- Parameters:
name
- a String name used to match the desired OrderPolicyType.- Returns:
- a OrderPolicyType enumerated value for the given name.
- See Also:
-
getOrderPolicy
public org.apache.geode.cache.wan.GatewaySender.OrderPolicy getOrderPolicy()Gets the GemFire Gateway.OrderPolicy corresponding to this OrderPolicyType enum.- Returns:
- a GemFire Gateway.OrderPolicy for this enum.
- See Also:
-
GatewaySender.OrderPolicy
-