|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.spy.memcached.compat.SpyObject
net.spy.memcached.DefaultConnectionFactory
net.spy.memcached.BinaryConnectionFactory
public class BinaryConnectionFactory
Default connection factory for binary wire protocol connections.
| Field Summary |
|---|
| Fields inherited from class net.spy.memcached.DefaultConnectionFactory |
|---|
DEFAULT_FAILURE_MODE, DEFAULT_HASH, DEFAULT_MAX_RECONNECT_DELAY, DEFAULT_MAX_TIMEOUTEXCEPTION_THRESHOLD, DEFAULT_OP_QUEUE_LEN, DEFAULT_OP_QUEUE_MAX_BLOCK_TIME, DEFAULT_OPERATION_TIMEOUT, DEFAULT_READ_BUFFER_SIZE, opQueueLen |
| Constructor Summary | |
|---|---|
BinaryConnectionFactory()
Create a DefaultConnectionFactory with the default parameters. |
|
BinaryConnectionFactory(int len,
int bufSize)
Create a BinaryConnectionFactory with the given maximum operation queue length, and the given read buffer size. |
|
BinaryConnectionFactory(int len,
int bufSize,
HashAlgorithm hash)
Construct a BinaryConnectionFactory with the given parameters. |
|
| Method Summary | |
|---|---|
MemcachedNode |
createMemcachedNode(java.net.SocketAddress sa,
java.nio.channels.SocketChannel c,
int bufSize)
Create a new memcached node. |
protected java.lang.String |
getName()
|
OperationFactory |
getOperationFactory()
Get the operation factory for connections built by this connection factory. |
| Methods inherited from class net.spy.memcached.compat.SpyObject |
|---|
getLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BinaryConnectionFactory()
public BinaryConnectionFactory(int len,
int bufSize)
public BinaryConnectionFactory(int len,
int bufSize,
HashAlgorithm hash)
len - the queue length.bufSize - the buffer sizehash - the algorithm to use for hashing| Method Detail |
|---|
public MemcachedNode createMemcachedNode(java.net.SocketAddress sa,
java.nio.channels.SocketChannel c,
int bufSize)
ConnectionFactory
createMemcachedNode in interface ConnectionFactorycreateMemcachedNode in class DefaultConnectionFactorypublic OperationFactory getOperationFactory()
ConnectionFactory
getOperationFactory in interface ConnectionFactorygetOperationFactory in class DefaultConnectionFactoryprotected java.lang.String getName()
getName in class DefaultConnectionFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||