Enum Class OrderPolicyType

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

public enum OrderPolicyType extends Enum<OrderPolicyType>
The OrderPolicyType class is an enumeration of GemFire Gateway Order Policies.
Since:
1.7.0
Author:
John Blum
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static OrderPolicyType[] 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 OrderPolicyType 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
    • getOrderPolicy

      public static 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:
    • valueOf

      public static OrderPolicyType valueOf(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:
    • valueOfIgnoreCase

      public static OrderPolicyType valueOfIgnoreCase(String name)
      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 GatewaySender.OrderPolicy getOrderPolicy()
      Gets the GemFire Gateway.OrderPolicy corresponding to this OrderPolicyType enum.
      Returns:
      a GemFire Gateway.OrderPolicy for this enum.
      See Also: