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 TypeClassDescriptionenumKnown hashing algorithms for locating a server for a key.Fields in net.spy.memcached declared as HashAlgorithmModifier and TypeFieldDescriptionstatic final HashAlgorithmDefaultConnectionFactory.DEFAULT_HASHDefault hash algorithm.private final HashAlgorithmArrayModNodeLocator.hashAlgprotected HashAlgorithmConnectionFactoryBuilder.hashAlgprivate final HashAlgorithmDefaultConnectionFactory.hashAlgprivate final HashAlgorithmKetamaIterator.hashAlgprivate final HashAlgorithmKetamaNodeLocator.hashAlgFields in net.spy.memcached with type parameters of type HashAlgorithmModifier and TypeFieldDescriptionprivate static final Map<String, HashAlgorithm> HashAlgorithmRegistry.REGISTRYInternal registry storage.Methods in net.spy.memcached that return HashAlgorithmModifier and TypeMethodDescriptionConnectionFactory.getHashAlg()Get the hash algorithm to be used.DefaultConnectionFactory.getHashAlg()static HashAlgorithmHashAlgorithmRegistry.lookupHashAlgorithm(String name) Tries to find selected hash algorithm using name provided.Methods in net.spy.memcached with parameters of type HashAlgorithmModifier and TypeMethodDescriptionstatic voidHashAlgorithmRegistry.registerHashAlgorithm(String name, HashAlgorithm alg) Registers providedHashAlgorithminstance with the given name.ConnectionFactoryBuilder.setHashAlg(HashAlgorithm to) Set the hash algorithm.private static voidHashAlgorithmRegistry.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.privateArrayModNodeLocator(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.protectedKetamaIterator(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.privateKetamaNodeLocator(TreeMap<Long, MemcachedNode> smn, Collection<MemcachedNode> an, HashAlgorithm alg, Map<InetSocketAddress, Integer> nodeWeights, KetamaNodeLocatorConfiguration conf)