com.googlecode.hibernate.memcached.dangamemcached
Class DangaMemcacheClientFactory

java.lang.Object
  extended by com.googlecode.hibernate.memcached.dangamemcached.DangaMemcacheClientFactory
All Implemented Interfaces:
MemcacheClientFactory

public class DangaMemcacheClientFactory
extends Object
implements MemcacheClientFactory

DOCUMENT ME!

Author:
George Wei

Field Summary
static boolean DEFAULT_COMPRESS_ENABLE
           
static String DEFAULT_DEFAULT_ENCODING
           
static String DEFAULT_ERROR_HANDLER
           
static int DEFAULT_INIT_CONN
           
static int DEFAULT_MAINT_SLEEP
           
static int DEFAULT_MAX_CONN
           
static int DEFAULT_MAX_IDLE
           
static int DEFAULT_MIN_CONN
           
static String DEFAULT_POOL_NAME
           
static String DEFAULT_SERVERS
           
static int DEFAULT_SOCKET_CONNECT_TIMEOUT
           
static int DEFAULT_SOCKET_TIMEOUT
           
static String PROP_COMPRESS_ENABLE
           
static String PROP_DEFAULT_ENCODING
           
static String PROP_ERROR_HANDLER
           
static String PROP_INIT_CONN
           
static String PROP_MAINT_SLEEP
           
static String PROP_MAX_CONN
           
static String PROP_MAX_IDLE
           
static String PROP_MIN_CONN
           
static String PROP_POOL_NAME
           
static String PROP_PREFIX
           
static String PROP_SERVERS
           
static String PROP_SOCKET_CONNECT_TIMEOUT
           
static String PROP_SOCKET_TIMEOUT
           
static String PROP_WEIGHTS
           
 
Constructor Summary
DangaMemcacheClientFactory(PropertiesHelper properties)
           
 
Method Summary
 Memcache createMemcacheClient()
           
 ClassLoader getClassLoader()
           
 String getDefaultEncoding()
           
 com.danga.MemCached.ErrorHandler getErrorHandler()
           
 int getInitConn()
           
 int getMaintSleep()
           
 int getMaxConn()
           
 int getMaxIdle()
           
 int getMinConn()
           
 String getPoolName()
           
 String[] getServers()
           
 int getSocketConnectTimeout()
           
 int getSocketTimeout()
           
 Integer[] getWeights()
           
 boolean isCompressEnable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROP_PREFIX

public static final String PROP_PREFIX
See Also:
Constant Field Values

PROP_COMPRESS_ENABLE

public static final String PROP_COMPRESS_ENABLE
See Also:
Constant Field Values

PROP_DEFAULT_ENCODING

public static final String PROP_DEFAULT_ENCODING
See Also:
Constant Field Values

PROP_POOL_NAME

public static final String PROP_POOL_NAME
See Also:
Constant Field Values

PROP_ERROR_HANDLER

public static final String PROP_ERROR_HANDLER
See Also:
Constant Field Values

PROP_SERVERS

public static final String PROP_SERVERS
See Also:
Constant Field Values

PROP_WEIGHTS

public static final String PROP_WEIGHTS
See Also:
Constant Field Values

PROP_INIT_CONN

public static final String PROP_INIT_CONN
See Also:
Constant Field Values

PROP_MIN_CONN

public static final String PROP_MIN_CONN
See Also:
Constant Field Values

PROP_MAX_CONN

public static final String PROP_MAX_CONN
See Also:
Constant Field Values

PROP_MAX_IDLE

public static final String PROP_MAX_IDLE
See Also:
Constant Field Values

PROP_MAINT_SLEEP

public static final String PROP_MAINT_SLEEP
See Also:
Constant Field Values

PROP_SOCKET_TIMEOUT

public static final String PROP_SOCKET_TIMEOUT
See Also:
Constant Field Values

PROP_SOCKET_CONNECT_TIMEOUT

public static final String PROP_SOCKET_CONNECT_TIMEOUT
See Also:
Constant Field Values

DEFAULT_COMPRESS_ENABLE

public static final boolean DEFAULT_COMPRESS_ENABLE
See Also:
Constant Field Values

DEFAULT_DEFAULT_ENCODING

public static final String DEFAULT_DEFAULT_ENCODING
See Also:
Constant Field Values

DEFAULT_POOL_NAME

public static final String DEFAULT_POOL_NAME
See Also:
Constant Field Values

DEFAULT_ERROR_HANDLER

public static final String DEFAULT_ERROR_HANDLER
See Also:
Constant Field Values

DEFAULT_SERVERS

public static final String DEFAULT_SERVERS
See Also:
Constant Field Values

DEFAULT_INIT_CONN

public static final int DEFAULT_INIT_CONN
See Also:
Constant Field Values

DEFAULT_MIN_CONN

public static final int DEFAULT_MIN_CONN
See Also:
Constant Field Values

DEFAULT_MAX_CONN

public static final int DEFAULT_MAX_CONN
See Also:
Constant Field Values

DEFAULT_MAX_IDLE

public static final int DEFAULT_MAX_IDLE
See Also:
Constant Field Values

DEFAULT_MAINT_SLEEP

public static final int DEFAULT_MAINT_SLEEP
See Also:
Constant Field Values

DEFAULT_SOCKET_TIMEOUT

public static final int DEFAULT_SOCKET_TIMEOUT
See Also:
Constant Field Values

DEFAULT_SOCKET_CONNECT_TIMEOUT

public static final int DEFAULT_SOCKET_CONNECT_TIMEOUT
See Also:
Constant Field Values
Constructor Detail

DangaMemcacheClientFactory

public DangaMemcacheClientFactory(PropertiesHelper properties)
Method Detail

createMemcacheClient

public Memcache createMemcacheClient()
                              throws Exception
Specified by:
createMemcacheClient in interface MemcacheClientFactory
Throws:
Exception

getClassLoader

public ClassLoader getClassLoader()

isCompressEnable

public boolean isCompressEnable()

getDefaultEncoding

public String getDefaultEncoding()

getPoolName

public String getPoolName()

getErrorHandler

public com.danga.MemCached.ErrorHandler getErrorHandler()

getServers

public String[] getServers()

getWeights

public Integer[] getWeights()

getInitConn

public int getInitConn()

getMinConn

public int getMinConn()

getMaxConn

public int getMaxConn()

getMaxIdle

public int getMaxIdle()

getMaintSleep

public int getMaintSleep()

getSocketTimeout

public int getSocketTimeout()

getSocketConnectTimeout

public int getSocketConnectTimeout()


Copyright © 2015. All rights reserved.