Uses of Interface
net.spy.memcached.HashAlgorithm
Packages that use HashAlgorithm
-
Uses of HashAlgorithm in net.spy.memcached
Classes in net.spy.memcached that implement HashAlgorithmModifier and TypeClassDescriptionenum
Known hashing algorithms for locating a server for a key.Fields in net.spy.memcached declared as HashAlgorithmModifier and TypeFieldDescriptionstatic final HashAlgorithm
DefaultConnectionFactory.DEFAULT_HASH
Default hash algorithm.private final HashAlgorithm
ArrayModNodeLocator.hashAlg
protected HashAlgorithm
ConnectionFactoryBuilder.hashAlg
private final HashAlgorithm
DefaultConnectionFactory.hashAlg
private final HashAlgorithm
KetamaIterator.hashAlg
private final HashAlgorithm
KetamaNodeLocator.hashAlg
Fields in net.spy.memcached with type parameters of type HashAlgorithmModifier and TypeFieldDescriptionprivate static final Map
<String, HashAlgorithm> HashAlgorithmRegistry.REGISTRY
Internal registry storage.Methods in net.spy.memcached that return HashAlgorithmModifier and TypeMethodDescriptionConnectionFactory.getHashAlg()
Get the hash algorithm to be used.DefaultConnectionFactory.getHashAlg()
static HashAlgorithm
HashAlgorithmRegistry.lookupHashAlgorithm
(String name) Tries to find selected hash algorithm using name provided.Methods in net.spy.memcached with parameters of type HashAlgorithmModifier and TypeMethodDescriptionstatic void
HashAlgorithmRegistry.registerHashAlgorithm
(String name, HashAlgorithm alg) Registers providedHashAlgorithm
instance with the given name.ConnectionFactoryBuilder.setHashAlg
(HashAlgorithm to) Set the hash algorithm.private static void
HashAlgorithmRegistry.validateAlgorithm
(HashAlgorithm alg) Validates algorithm instance.Constructors in net.spy.memcached with parameters of type HashAlgorithmModifierConstructorDescriptionConstruct an ArraymodNodeLocator over the given array of nodes and using the given hash algorithm.private
ArrayModNodeLocator
(MemcachedNode[] n, HashAlgorithm alg) BinaryConnectionFactory
(int len, int bufSize, HashAlgorithm hash) Construct a BinaryConnectionFactory with the given parameters.DefaultConnectionFactory
(int qLen, int bufSize, HashAlgorithm hash) Construct a DefaultConnectionFactory with the given parameters.KetamaConnectionFactory
(int qLen, int bufSize, long opQueueMaxBlockTime, HashAlgorithm hash, KetamaNodeKeyFormatter.Format nodeKeyFormat, Map<InetSocketAddress, Integer> weights) Create a KetamaConnectionFactory with the maximum operation queue length, the given read buffer size, the maximum time to block waiting operations, a specific hash algorithm, a set ring key format, and a given set of weights.protected
KetamaIterator
(String k, int t, TreeMap<Long, MemcachedNode> ketamaNodes, HashAlgorithm hashAlg) Create a new KetamaIterator to be used by a client for an operation.KetamaNodeLocator
(List<MemcachedNode> nodes, HashAlgorithm alg) Create a new KetamaNodeLocator using specified nodes and the specifed hash algorithm.KetamaNodeLocator
(List<MemcachedNode> nodes, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration configuration) Create a new KetamaNodeLocator with specific nodes, hash, node key format, and weightKetamaNodeLocator
(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeKeyFormatter.Format nodeKeyFormat, Map<InetSocketAddress, Integer> weights) Create a new KetamaNodeLocator with specific nodes, hash, node key format, and weightKetamaNodeLocator
(List<MemcachedNode> nodes, HashAlgorithm alg, KetamaNodeLocatorConfiguration conf) Create a new KetamaNodeLocator using specified nodes and the specifed hash algorithm and configuration.private
KetamaNodeLocator
(TreeMap<Long, MemcachedNode> smn, Collection<MemcachedNode> an, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration conf)