Enum Class ClientRoutingMode

java.lang.Object
java.lang.Enum<ClientRoutingMode>
com.loomcache.client.ClientRoutingMode
All Implemented Interfaces:
Serializable, Comparable<ClientRoutingMode>, Constable

public enum ClientRoutingMode extends Enum<ClientRoutingMode>
Client cluster routing mode.
  • Enum Constant Details

    • ALL_MEMBERS

      public static final ClientRoutingMode ALL_MEMBERS
      Smart routing: connect to all configured seeds and route directly to members.
    • SINGLE_MEMBER

      public static final ClientRoutingMode SINGLE_MEMBER
      Unisocket routing: keep a single member connection and route all operations through it.
    • MULTI_MEMBER

      public static final ClientRoutingMode MULTI_MEMBER
      Group-subset routing: connect to the configured member-group subset and route normal smart-client traffic across that subset.
  • Method Details

    • values

      public static ClientRoutingMode[] 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 ClientRoutingMode 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