Enum ClientIntelligence

  • All Implemented Interfaces:
    Serializable, Comparable<ClientIntelligence>

    public enum ClientIntelligence
    extends 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
    Since:
    9.0
    Author:
    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())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClientIntelligence valueOf​(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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getValue

        public byte getValue()