ConnectionFactory Interface Reference

Inherited by DefaultConnectionFactory.

List of all members.

Public Member Functions

NodeLocator createLocator (List< MemcachedNode > nodes)
MemcachedNode createMemcachedNode (SocketAddress sa, SocketChannel c, int bufSize)
BlockingQueue< OperationcreateOperationQueue ()
BlockingQueue< OperationcreateReadOperationQueue ()
BlockingQueue< OperationcreateWriteOperationQueue ()
OperationFactory getOperationFactory ()
long getOperationTimeout ()
boolean isDaemon ()

Package Functions

MemcachedConnection createConnection (List< InetSocketAddress > addrs) throws IOException


Detailed Description

Factory for creating instances of MemcachedConnection. This is used to provide more fine-grained configuration of connections.

Member Function Documentation

MemcachedConnection createConnection ( List< InetSocketAddress >  addrs  )  throws IOException [package]

Create a MemcachedConnection for the given SocketAddresses.

Parameters:
addrs the addresses of the memcached servers
Returns:
a new MemcachedConnection connected to those addresses
Exceptions:
IOException for problems initializing the memcached connections

Implemented in DefaultConnectionFactory.

NodeLocator createLocator ( List< MemcachedNode nodes  ) 

Create a NodeLocator instance for the given list of nodes.

Implemented in DefaultConnectionFactory, and KetamaConnectionFactory.

MemcachedNode createMemcachedNode ( SocketAddress  sa,
SocketChannel  c,
int  bufSize 
)

Create a new memcached node.

Implemented in BinaryConnectionFactory, and DefaultConnectionFactory.

BlockingQueue<Operation> createOperationQueue (  ) 

Create a BlockingQueue for operations for a connection.

Implemented in DefaultConnectionFactory.

BlockingQueue<Operation> createReadOperationQueue (  ) 

Create a BlockingQueue for the operations currently expecting to read responses from memcached.

Implemented in DefaultConnectionFactory.

BlockingQueue<Operation> createWriteOperationQueue (  ) 

Create a BlockingQueue for the operations currently expecting to write requests to memcached.

Implemented in DefaultConnectionFactory.

OperationFactory getOperationFactory (  ) 

Get the operation factory for connections built by this connection factory.

Implemented in BinaryConnectionFactory, and DefaultConnectionFactory.

long getOperationTimeout (  ) 

Get the operation timeout used by this connection.

Implemented in DefaultConnectionFactory.

boolean isDaemon (  ) 

If true, the IO thread should be a daemon thread.

Implemented in DefaultConnectionFactory.


The documentation for this interface was generated from the following file:

Generated on Sat May 26 06:43:37 2012 for Project Wonder by  doxygen 1.5.8