Package com.zeroc.Ice

Enum Class EndpointSelectionType

java.lang.Object
java.lang.Enum<EndpointSelectionType>
com.zeroc.Ice.EndpointSelectionType
All Implemented Interfaces:
Serializable, Comparable<EndpointSelectionType>, Constable

public enum EndpointSelectionType extends Enum<EndpointSelectionType>
Determines the order in which the Ice run time uses the endpoints in a proxy when establishing a connection.
  • Enum Constant Details

    • Random

      public static final EndpointSelectionType Random
      Random causes the endpoints to be arranged in a random order.
    • Ordered

      public static final EndpointSelectionType Ordered
      Ordered forces the Ice run time to use the endpoints in the order they appeared in the proxy.
  • Method Details

    • values

      public static EndpointSelectionType[] 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 EndpointSelectionType 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
    • value

      public int value()
    • valueOf

      public static EndpointSelectionType valueOf(int v)
      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:
      v - 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