public class BinaryConnectionFactory extends DefaultConnectionFactory
DEFAULT_AUTH_WAIT_TIME, DEFAULT_CLIENT_MODE, 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 BinaryConnectionFactory with the default parameters.
|
BinaryConnectionFactory(ClientMode clientMode)
Create a BinaryConnectionFactory with the given clientMode.
|
BinaryConnectionFactory(ClientMode clientMode,
int len,
int bufSize)
Create a BinaryConnectionFactory with the given parameters
|
BinaryConnectionFactory(ClientMode clientMode,
int len,
int bufSize,
HashAlgorithm hash)
Construct a BinaryConnectionFactory with the given parameters.
|
BinaryConnectionFactory(int len,
int bufSize)
Create a BinaryConnectionFactory with the given parameters
|
BinaryConnectionFactory(int len,
int bufSize,
HashAlgorithm hash)
Construct a BinaryConnectionFactory with the given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
createConnection, createLocator, createOperationQueue, createReadOperationQueue, createWriteOperationQueue, enableMetrics, getAuthDescriptor, getAuthWaitTime, getClientMode, getDefaultTranscoder, getDynamicModePollingInterval, getFailureMode, getHashAlg, getHostnameForTlsVerification, getInitialObservers, getKeepAlive, getListenerExecutorService, getMaxReconnectDelay, getMetricCollector, getOperationTimeout, getOpQueueLen, getOpQueueMaxBlockTime, getReadBufSize, getSSLContext, getTimeoutExceptionThreshold, isDaemon, isDefaultExecutorService, setClientMode, shouldOptimize, skipTlsHostnameVerification, toString, useNagleAlgorithmpublic BinaryConnectionFactory()
public BinaryConnectionFactory(ClientMode clientMode)
clientMode - public BinaryConnectionFactory(int len,
int bufSize)
len - the queue length.bufSize - the buffer sizepublic BinaryConnectionFactory(ClientMode clientMode, int len, int bufSize)
clientMode - the mode of the client to indicate whether dynamic server list management is done.len - the queue length.bufSize - the buffer sizepublic BinaryConnectionFactory(int len,
int bufSize,
HashAlgorithm hash)
len - the queue length.bufSize - the buffer sizehash - the algorithm to use for hashingpublic BinaryConnectionFactory(ClientMode clientMode, int len, int bufSize, HashAlgorithm hash)
clientMode - the mode of the client to indicate whether dynamic server list management is done.len - the queue length.bufSize - the buffer sizehash - the algorithm to use for hashingpublic MemcachedNode createMemcachedNode(java.net.SocketAddress sa, java.nio.channels.SocketChannel c, int bufSize)
ConnectionFactorycreateMemcachedNode in interface ConnectionFactorycreateMemcachedNode in class DefaultConnectionFactorypublic OperationFactory getOperationFactory()
ConnectionFactorygetOperationFactory in interface ConnectionFactorygetOperationFactory in class DefaultConnectionFactoryprotected java.lang.String getName()
getName in class DefaultConnectionFactoryCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.