KetamaConnectionFactory Class Reference

Inherits net::spy::memcached::DefaultConnectionFactory.

Collaboration diagram for KetamaConnectionFactory:

Collaboration graph
[legend]

List of all members.

Public Member Functions

NodeLocator createLocator (List< MemcachedNode > nodes)
 KetamaConnectionFactory ()
 KetamaConnectionFactory (int qLen, int bufSize)


Detailed Description

ConnectionFactory instance that sets up a ketama compatible connection.

This implementation piggy-backs on the functionality of the DefaultConnectionFactory in terms of connections and queue handling. Where it differs is that it uses both the KetamaNodeLocator and the HashAlgorithm.KETAMA_HASH to provide consistent node hashing.

See also:
http://www.last.fm/user/RJ/journal/2007/04/10/392555/

Constructor & Destructor Documentation

KetamaConnectionFactory ( int  qLen,
int  bufSize 
)

Create a KetamaConnectionFactory with the given maximum operation queue length, and the given read buffer size.

Create a KetamaConnectionFactory with the default parameters.


Member Function Documentation

NodeLocator createLocator ( List< MemcachedNode nodes  ) 

Create a NodeLocator instance for the given list of nodes.

Reimplemented from DefaultConnectionFactory.


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

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