Enum ClientIntelligence

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ClientIntelligence>

    public enum ClientIntelligence
    extends java.lang.Enum<ClientIntelligence>
    ClientIntelligence specifies the level of intelligence used by the client.
    • BASIC means that the client doesn't handle server topology changes and therefore will only used the list of servers supplied at configuration time
    • TOPOLOGY_AWARE means that the client wants to receive topology updates from the servers so that it can deal with added / removed servers dynamically. Requests will go to the servers using a round-robin approach
    • HASH_DISTRIBUTION_AWARE like TOPOLOGY_AWARE but with the additional advantage that each request involving keys will be routed to the server who is the primary owner which improves performance greatly. This is the default
    Tristan Tarrant
    • Method Detail

      • values

        public static ClientIntelligence[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClientIntelligence c : ClientIntelligence.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClientIntelligence valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getValue

        public byte getValue()