| Package | Description |
|---|---|
| net.spy.memcached |
Memcached client and transformation utils
|
| net.spy.memcached.spring |
| Modifier and Type | Class and Description |
|---|---|
class |
DefaultHashAlgorithm
Known hashing algorithms for locating a server for a key.
|
| Modifier and Type | Field and Description |
|---|---|
static HashAlgorithm |
DefaultConnectionFactory.DEFAULT_HASH
Default hash algorithm.
|
protected HashAlgorithm |
ConnectionFactoryBuilder.hashAlg |
| Modifier and Type | Method and Description |
|---|---|
HashAlgorithm |
DefaultConnectionFactory.getHashAlg() |
HashAlgorithm |
ConnectionFactory.getHashAlg()
Get the hash algorithm to be used.
|
static HashAlgorithm |
HashAlgorithmRegistry.lookupHashAlgorithm(java.lang.String name)
Tries to find selected hash algorithm using name provided.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
HashAlgorithmRegistry.registerHashAlgorithm(java.lang.String name,
HashAlgorithm alg)
Registers provided
HashAlgorithm instance with the given name. |
ConnectionFactoryBuilder |
ConnectionFactoryBuilder.setHashAlg(HashAlgorithm to)
Set the hash algorithm.
|
| Constructor and Description |
|---|
ArrayModNodeLocator(java.util.List<MemcachedNode> n,
HashAlgorithm alg)
Construct an ArraymodNodeLocator over the given array of nodes and using
the given hash algorithm.
|
BinaryConnectionFactory(ClientMode clientMode,
int len,
int bufSize,
HashAlgorithm hash)
Construct a BinaryConnectionFactory with the given parameters.
|
BinaryConnectionFactory(int len,
int bufSize,
HashAlgorithm hash)
Construct a BinaryConnectionFactory with the given parameters.
|
DefaultConnectionFactory(ClientMode clientMode,
int qLen,
int bufSize,
HashAlgorithm hash)
Construct a DefaultConnectionFactory 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,
java.util.Map<java.net.InetSocketAddress,java.lang.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.
|
KetamaNodeLocator(java.util.List<MemcachedNode> nodes,
HashAlgorithm alg)
Create a new KetamaNodeLocator using specified nodes and the specifed hash
algorithm.
|
KetamaNodeLocator(java.util.List<MemcachedNode> nodes,
HashAlgorithm alg,
KetamaNodeKeyFormatter.Format nodeKeyFormat,
java.util.Map<java.net.InetSocketAddress,java.lang.Integer> weights)
Create a new KetamaNodeLocator with specific nodes, hash, node key format,
and weight
|
KetamaNodeLocator(java.util.List<MemcachedNode> nodes,
HashAlgorithm alg,
KetamaNodeLocatorConfiguration conf)
Create a new KetamaNodeLocator using specified nodes and the specifed hash
algorithm and configuration.
|
KetamaNodeLocator(java.util.List<MemcachedNode> nodes,
HashAlgorithm alg,
java.util.Map<java.net.InetSocketAddress,java.lang.Integer> nodeWeights,
KetamaNodeLocatorConfiguration configuration)
Create a new KetamaNodeLocator with specific nodes, hash, node key format,
and weight
|
| Modifier and Type | Method and Description |
|---|---|
void |
MemcachedClientFactoryBean.setHashAlg(HashAlgorithm to) |
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.