nodes, getHashAlg(), new DefaultKetamaNodeLocatorConfiguration()
/** * Create a new KetamaNodeLocator with specific nodes, hash, node key format, * and weight * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param nodeKeyFormat the format used to name the nodes in Ketama, either * SPYMEMCACHED or LIBMEMCACHED * @param weights node weights for ketama, a map from InetSocketAddress to * weight as Integer */ public RefinedKetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeKeyFormatter.Format nodeKeyFormat, Map<InetSocketAddress, Integer> weights) { this(nodes, alg, weights, new DefaultKetamaNodeLocatorConfiguration(new KetamaNodeKeyFormatter(nodeKeyFormat))); }
/** * Create a new KetamaNodeLocator using specified nodes and the specifed hash algorithm. * * @param nodes The List of nodes to use in the Ketama consistent hash continuum * @param alg The hash algorithm to use when choosing a node in the Ketama consistent hash continuum */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg) { this(nodes, alg, new DefaultKetamaNodeLocatorConfiguration()); }
/** * Create a new KetamaNodeLocator using specified nodes and the specifed hash * algorithm. * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg) { this(nodes, alg, new DefaultKetamaNodeLocatorConfiguration()); }
/** * Create a new KetamaNodeLocator using specified nodes and the specifed hash * algorithm. * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg) { this(nodes, alg, new DefaultKetamaNodeLocatorConfiguration()); }
public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg) { this(nodes, alg, new DefaultKetamaNodeLocatorConfiguration()); }
public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg) { this(nodes, alg, new DefaultKetamaNodeLocatorConfiguration()); }
nodes, getHashAlg(), new DefaultKetamaNodeLocatorConfiguration()
nodes, getHashAlg(), new DefaultKetamaNodeLocatorConfiguration()
/** * Create a new KetamaNodeLocator with specific nodes, hash, node key format, * and weight * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param nodeKeyFormat the format used to name the nodes in Ketama, either * SPYMEMCACHED or LIBMEMCACHED * @param weights node weights for ketama, a map from InetSocketAddress to * weight as Integer */ public RefinedKetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeKeyFormatter.Format nodeKeyFormat, Map<InetSocketAddress, Integer> weights) { this(nodes, alg, weights, new DefaultKetamaNodeLocatorConfiguration(new KetamaNodeKeyFormatter(nodeKeyFormat))); }
/** * Create a new KetamaNodeLocator with specific nodes, hash, node key format, * and weight * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param nodeKeyFormat the format used to name the nodes in Ketama, either * SPYMEMCACHED or LIBMEMCACHED * @param weights node weights for ketama, a map from InetSocketAddress to * weight as Integer */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeKeyFormatter.Format nodeKeyFormat, Map<InetSocketAddress, Integer> weights) { this(nodes, alg, weights, new DefaultKetamaNodeLocatorConfiguration(new KetamaNodeKeyFormatter(nodeKeyFormat))); }
/** * Create a new KetamaNodeLocator with specific nodes, hash, node key format, * and weight * * @param nodes The List of nodes to use in the Ketama consistent hash * continuum * @param alg The hash algorithm to use when choosing a node in the Ketama * consistent hash continuum * @param nodeKeyFormat the format used to name the nodes in Ketama, either * SPYMEMCACHED or LIBMEMCACHED * @param weights node weights for ketama, a map from InetSocketAddress to * weight as Integer */ public KetamaNodeLocator(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeKeyFormatter.Format nodeKeyFormat, Map<InetSocketAddress, Integer> weights) { this(nodes, alg, weights, new DefaultKetamaNodeLocatorConfiguration(new KetamaNodeKeyFormatter(nodeKeyFormat))); }