public class MemcachedClientFactoryBean
extends java.lang.Object
implements org.springframework.beans.factory.FactoryBean
FactoryBean
creating MemcachedClient
instances.
Usage example:
<bean id="memcachedClient"
class="net.spy.memcached.utils.MemcachedClientFactoryBean">
<property name="servers" value="${pajamas.remoteHosts}"/>
<property name="protocol" value="${pajamas.client.protocol}"/>
<property name="transcoder"/>
<bean class="net.rubyeye.xmemcached.transcoders.SerializingTranscoder"/>
<property name="hashAlg" value="${pajamas.client.hashAlg}"/>
<property name="locatorType" value="${pajamas.client.locatorType}"/>
Constructor and Description |
---|
MemcachedClientFactoryBean() |
public java.lang.Object getObject() throws java.lang.Exception
getObject
in interface org.springframework.beans.factory.FactoryBean
java.lang.Exception
public java.lang.Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean
public void setServers(java.lang.String newServers)
public void setAuthDescriptor(AuthDescriptor to)
public void setDaemon(boolean d)
public void setFailureMode(FailureMode fm)
public void setHashAlg(HashAlgorithm to)
public void setInitialObservers(java.util.Collection<ConnectionObserver> obs)
public void setLocatorType(ConnectionFactoryBuilder.Locator l)
public void setMaxReconnectDelay(long to)
public void setOpFact(OperationFactory f)
public void setOpQueueFactory(OperationQueueFactory q)
public void setOpQueueMaxBlockTime(long t)
public void setOpTimeout(long t)
public void setProtocol(ConnectionFactoryBuilder.Protocol prot)
public void setReadBufferSize(int to)
public void setReadOpQueueFactory(OperationQueueFactory q)
public void setShouldOptimize(boolean o)
public void setTimeoutExceptionThreshold(int to)
public void setTranscoder(Transcoder<java.lang.Object> t)
public void setUseNagleAlgorithm(boolean to)
public void setWriteOpQueueFactory(OperationQueueFactory q)
Copyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.