net.rubyeye.xmemcached.utils.hibernate
Class XmemcachedClientFactory
java.lang.Object
net.rubyeye.xmemcached.utils.hibernate.XmemcachedClientFactory
- All Implemented Interfaces:
- com.googlecode.hibernate.memcached.MemcacheClientFactory
public class XmemcachedClientFactory
- extends java.lang.Object
- implements com.googlecode.hibernate.memcached.MemcacheClientFactory
Parses hibernate properties to produce a MemcachedClient.
See MemcachedCacheProvider for
property details. SPI for xmemcached.
- Author:
- dennis
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROP_SERVERS
public static final java.lang.String PROP_SERVERS
- See Also:
- Constant Field Values
PROP_READ_BUFFER_SIZE
public static final java.lang.String PROP_READ_BUFFER_SIZE
- See Also:
- Constant Field Values
PROP_OPERATION_TIMEOUT
public static final java.lang.String PROP_OPERATION_TIMEOUT
- See Also:
- Constant Field Values
PROP_HASH_ALGORITHM
public static final java.lang.String PROP_HASH_ALGORITHM
- See Also:
- Constant Field Values
PROP_COMMAND_FACTORY
public static final java.lang.String PROP_COMMAND_FACTORY
- See Also:
- Constant Field Values
PROP_SESSION_LOCATOR
public static final java.lang.String PROP_SESSION_LOCATOR
- See Also:
- Constant Field Values
XmemcachedClientFactory
public XmemcachedClientFactory(com.googlecode.hibernate.memcached.PropertiesHelper properties)
createMemcacheClient
public com.googlecode.hibernate.memcached.Memcache createMemcacheClient()
throws java.lang.Exception
- Specified by:
createMemcacheClient in interface com.googlecode.hibernate.memcached.MemcacheClientFactory
- Throws:
java.lang.Exception
getSessionLocator
protected MemcachedSessionLocator getSessionLocator()
getCommandFactory
protected CommandFactory getCommandFactory()
getServerList
public java.lang.String getServerList()
getReadBufferSize
public int getReadBufferSize()
getOperationTimeoutMillis
public long getOperationTimeoutMillis()
getHashAlgorithm
public HashAlgorithm getHashAlgorithm()
getCommandFactoryName
public java.lang.String getCommandFactoryName()
getSessionLocatorName
public java.lang.String getSessionLocatorName()
getProperties
protected com.googlecode.hibernate.memcached.PropertiesHelper getProperties()
Copyright © 2011. All Rights Reserved.