public class BinaryConnectionFactory extends 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 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(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, getAuthDescriptor, getDefaultTranscoder, getFailureMode, getHashAlg, getInitialObservers, getMaxReconnectDelay, getOperationTimeout, getOpQueueLen, getOpQueueMaxBlockTime, getReadBufSize, getTimeoutExceptionThreshold, isDaemon, shouldOptimize, toString, useNagleAlgorithm
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 hashingpublic MemcachedNode createMemcachedNode(java.net.SocketAddress sa, java.nio.channels.SocketChannel c, int bufSize)
ConnectionFactory
createMemcachedNode
in interface ConnectionFactory
createMemcachedNode
in class DefaultConnectionFactory
public OperationFactory getOperationFactory()
ConnectionFactory
getOperationFactory
in interface ConnectionFactory
getOperationFactory
in class DefaultConnectionFactory
protected java.lang.String getName()
getName
in class DefaultConnectionFactory
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.