Enum ProxyBackendCfgDefn.HashFunction

  • All Implemented Interfaces:
    Serializable, Comparable<ProxyBackendCfgDefn.HashFunction>
    Enclosing class:
    ProxyBackendCfgDefn

    public static enum ProxyBackendCfgDefn.HashFunction
    extends Enum<ProxyBackendCfgDefn.HashFunction>
    Defines the set of permissible values for the "hash-function" property.

    Specifies the hash function which will be used for data distribution.

    This setting only applies to data distribution. Once this server is deployed, this setting must not be modified. Doing so could result in data loss. The hash function is used by the router to map incoming requests to a target server based on the request's target DN. The role of the hash function is to ensure that the flow of incoming requests is evenly distributed on the set of servers.

    • Enum Constant Detail

      • MD5

        public static final ProxyBackendCfgDefn.HashFunction MD5
        Use the MD5 hash algorithm. This hash function does not distribute data evenly and should not be used in new deployments.
      • MURMUR3

        public static final ProxyBackendCfgDefn.HashFunction MURMUR3
        Use the Murmur3 hash algorithm. This hash function distributes data more evenly than MD5 and should be used in new deployments.
    • Method Detail

      • values

        public static ProxyBackendCfgDefn.HashFunction[] 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 (ProxyBackendCfgDefn.HashFunction c : ProxyBackendCfgDefn.HashFunction.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ProxyBackendCfgDefn.HashFunction 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