org.openanzo.atom.memcached
Class MemcachedClientPool

java.lang.Object
  extended by org.openanzo.atom.memcached.MemcachedClientPool

public class MemcachedClientPool
extends java.lang.Object

A simple pool of connections to a memcached server.

Author:
bszekely

Constructor Summary
MemcachedClientPool(java.lang.String host, int port, int maxclients)
           
 
Method Summary
 MemcachedClient acquireClient()
          The caller must close the client when it is through
 void closeAll()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemcachedClientPool

public MemcachedClientPool(java.lang.String host,
                           int port,
                           int maxclients)
                    throws MemcachedException
Throws:
MemcachedException
Method Detail

acquireClient

public MemcachedClient acquireClient()
                              throws MemcachedException
The caller must close the client when it is through

Returns:
Throws:
MemcachedException

closeAll

public void closeAll()


Copyright © 2007 Cambridge Semantics Inc.. All Rights Reserved.