Package net.spy.memcached
Class BinaryConnectionFactory
java.lang.Object
net.spy.memcached.compat.SpyObject
net.spy.memcached.DefaultConnectionFactory
net.spy.memcached.BinaryConnectionFactory
- All Implemented Interfaces:
ConnectionFactory
Default connection factory for binary wire protocol connections.
-
Field Summary
Fields inherited from class net.spy.memcached.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 Summary
ConstructorsConstructorDescriptionCreate a BinaryConnectionFactory with the default parameters.BinaryConnectionFactory(int len, int bufSize) Create a BinaryConnectionFactory with the given parametersBinaryConnectionFactory(int len, int bufSize, HashAlgorithm hash) Construct a BinaryConnectionFactory with the given parameters.BinaryConnectionFactory(ClientMode clientMode) Create a BinaryConnectionFactory with the given clientMode.BinaryConnectionFactory(ClientMode clientMode, int len, int bufSize) Create a BinaryConnectionFactory with the given parametersBinaryConnectionFactory(ClientMode clientMode, int len, int bufSize, HashAlgorithm hash) Construct a BinaryConnectionFactory with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptioncreateMemcachedNode(SocketAddress sa, SocketChannel c, int bufSize) Create a new memcached node.protected StringgetName()Get the operation factory for connections built by this connection factory.Methods inherited from class net.spy.memcached.DefaultConnectionFactory
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, useNagleAlgorithm
-
Constructor Details
-
BinaryConnectionFactory
public BinaryConnectionFactory()Create a BinaryConnectionFactory with the default parameters. -
BinaryConnectionFactory
Create a BinaryConnectionFactory with the given clientMode.- Parameters:
clientMode-
-
BinaryConnectionFactory
public BinaryConnectionFactory(int len, int bufSize) Create a BinaryConnectionFactory with the given parameters- Parameters:
len- the queue length.bufSize- the buffer size
-
BinaryConnectionFactory
Create a BinaryConnectionFactory with the given parameters- Parameters:
clientMode- the mode of the client to indicate whether dynamic server list management is done.len- the queue length.bufSize- the buffer size
-
BinaryConnectionFactory
Construct a BinaryConnectionFactory with the given parameters.- Parameters:
len- the queue length.bufSize- the buffer sizehash- the algorithm to use for hashing
-
BinaryConnectionFactory
Construct a BinaryConnectionFactory with the given parameters.- Parameters:
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 hashing
-
-
Method Details
-
createMemcachedNode
Description copied from interface:ConnectionFactoryCreate a new memcached node.- Specified by:
createMemcachedNodein interfaceConnectionFactory- Overrides:
createMemcachedNodein classDefaultConnectionFactory
-
getOperationFactory
Description copied from interface:ConnectionFactoryGet the operation factory for connections built by this connection factory.- Specified by:
getOperationFactoryin interfaceConnectionFactory- Overrides:
getOperationFactoryin classDefaultConnectionFactory
-
getName
- Overrides:
getNamein classDefaultConnectionFactory
-