public class BinaryConnectionFactory extends DefaultConnectionFactory
DEFAULT_AUTH_WAIT_TIME, DEFAULT_FAILURE_MODE, DEFAULT_HASH, DEFAULT_MAX_RECONNECT_DELAY, DEFAULT_MAX_TIMEOUTEXCEPTION_THRESHOLD, DEFAULT_METRIC_TYPE, DEFAULT_OP_QUEUE_LEN, DEFAULT_OP_QUEUE_MAX_BLOCK_TIME, DEFAULT_OPERATION_TIMEOUT, DEFAULT_READ_BUFFER_SIZE, opQueueLen| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
MemcachedNode |
createMemcachedNode(SocketAddress sa,
SocketChannel c,
int bufSize)
Create a new memcached node.
|
protected String |
getName() |
OperationFactory |
getOperationFactory()
Get the operation factory for connections built by this connection factory.
|
createConnection, createLocator, createOperationQueue, createReadOperationQueue, createWriteOperationQueue, enableMetrics, getAuthDescriptor, getAuthWaitTime, getDefaultTranscoder, getFailureMode, getHashAlg, getInitialObservers, getListenerExecutorService, getMaxReconnectDelay, getMetricCollector, getOperationTimeout, getOpQueueLen, getOpQueueMaxBlockTime, getReadBufSize, getTimeoutExceptionThreshold, isDaemon, isDefaultExecutorService, shouldOptimize, toString, useNagleAlgorithmpublic 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 hashingpublic MemcachedNode createMemcachedNode(SocketAddress sa, SocketChannel c, int bufSize)
ConnectionFactorycreateMemcachedNode in interface ConnectionFactorycreateMemcachedNode in class DefaultConnectionFactorypublic OperationFactory getOperationFactory()
ConnectionFactorygetOperationFactory in interface ConnectionFactorygetOperationFactory in class DefaultConnectionFactoryprotected String getName()
getName in class DefaultConnectionFactoryCopyright © 2019. All rights reserved.