| 
||||||||||
| 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_OP_QUEUE_LEN, DEFAULT_OPERATION_TIMEOUT, DEFAULT_READ_BUFFER_SIZE | 
| 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(SocketAddress sa,
                    SocketChannel c,
                    int bufSize)
Create a new memcached node.  | 
 OperationFactory | 
getOperationFactory()
Get the operation factory for connections built by this connection factory.  | 
| Methods inherited from class net.spy.memcached.DefaultConnectionFactory | 
|---|
createConnection, createLocator, createOperationQueue, createReadOperationQueue, createWriteOperationQueue, getDefaultTranscoder, getFailureMode, getHashAlg, getInitialObservers, getMaxReconnectDelay, getOperationTimeout, getOpQueueLen, getReadBufSize, isDaemon, shouldOptimize, useNagleAlgorithm | 
| Methods inherited from class net.spy.memcached.compat.SpyObject | 
|---|
getLogger | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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(SocketAddress sa,
                                         SocketChannel c,
                                         int bufSize)
ConnectionFactory
createMemcachedNode in interface ConnectionFactorycreateMemcachedNode in class DefaultConnectionFactorypublic OperationFactory getOperationFactory()
ConnectionFactory
getOperationFactory in interface ConnectionFactorygetOperationFactory in class DefaultConnectionFactory
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||