public class MemcachedConnectionFactoryBuilder
extends net.spy.memcached.ConnectionFactoryBuilder
authDescriptor, failureMode, hashAlg, initialObservers, isDaemon, locator, maxReconnectDelay, opFact, opQueueFactory, opQueueMaxBlockTime, opTimeout, readBufSize, readQueueFactory, shouldOptimize, timeoutExceptionThreshold, transcoder, useNagle, writeQueueFactory
Constructor and Description |
---|
MemcachedConnectionFactoryBuilder() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getServers() |
void |
setAuthDescriptorN2B(net.spy.memcached.auth.AuthDescriptor to)
Set the auth descriptor to enable authentication on new connections.
|
void |
setDaemonN2B(boolean d)
Set the daemon state of the IO thread (defaults to true).
|
void |
setFailureModeN2B(net.spy.memcached.FailureMode fm)
Set the failure mode.
|
void |
setHashAlgN2B(net.spy.memcached.HashAlgorithm to)
Set the hash algorithm.
|
void |
setInitialObserversN2B(Collection<net.spy.memcached.ConnectionObserver> obs)
Set the initial connection observers (will observe initial connection).
|
void |
setLocatorTypeN2B(net.spy.memcached.ConnectionFactoryBuilder.Locator l)
Set the locator type.
|
void |
setMaxReconnectDelayN2B(long to)
Set the maximum reconnect delay.
|
void |
setOpFactN2B(net.spy.memcached.OperationFactory f)
Set the operation factory.
|
void |
setOpQueueMaxBlockTimeN2B(long t)
Set the maximum amount of time (in milliseconds) a client is willing to
wait for space to become available in an output queue.
|
void |
setOpTimeoutN2B(long t)
Set the default operation timeout in milliseconds.
|
void |
setProtocolN2B(net.spy.memcached.ConnectionFactoryBuilder.Protocol prot)
Convenience method to specify the protocol to use.
|
void |
setReadBufferSizeN2B(int to)
Set the read buffer size.
|
void |
setReadOpQueueFactoryN2B(net.spy.memcached.ops.OperationQueueFactory q) |
void |
setServers(List<String> servers) |
void |
setShouldOptimizeN2B(boolean o)
Set to false if the default operation optimization is not desirable.
|
void |
setTimeoutExceptionThresholdN2B(int to)
Set the maximum timeout exception threshold.
|
void |
setTranscoderN2B(net.spy.memcached.transcoders.Transcoder<Object> t)
Set the default transcoder.
|
void |
setUseNagleAlgorithmN2B(boolean to)
Set to true if you'd like to enable the Nagle algorithm.
|
void |
setWriteOpQueueFactoryN2B(net.spy.memcached.ops.OperationQueueFactory q)
Set the write queue factory.
|
build, setAuthDescriptor, setDaemon, setFailureMode, setHashAlg, setInitialObservers, setLocatorType, setMaxReconnectDelay, setOpFact, setOpQueueFactory, setOpQueueMaxBlockTime, setOpTimeout, setProtocol, setReadBufferSize, setReadOpQueueFactory, setShouldOptimize, setTimeoutExceptionThreshold, setTranscoder, setUseNagleAlgorithm, setWriteOpQueueFactory
public void setReadOpQueueFactoryN2B(net.spy.memcached.ops.OperationQueueFactory q)
public void setWriteOpQueueFactoryN2B(net.spy.memcached.ops.OperationQueueFactory q)
public void setOpQueueMaxBlockTimeN2B(long t)
public void setTranscoderN2B(net.spy.memcached.transcoders.Transcoder<Object> t)
public void setFailureModeN2B(net.spy.memcached.FailureMode fm)
public void setInitialObserversN2B(Collection<net.spy.memcached.ConnectionObserver> obs)
public void setOpFactN2B(net.spy.memcached.OperationFactory f)
MemcachedNode
public void setOpTimeoutN2B(long t)
public void setDaemonN2B(boolean d)
public void setShouldOptimizeN2B(boolean o)
public void setReadBufferSizeN2B(int to)
public void setHashAlgN2B(net.spy.memcached.HashAlgorithm to)
public void setUseNagleAlgorithmN2B(boolean to)
public void setProtocolN2B(net.spy.memcached.ConnectionFactoryBuilder.Protocol prot)
public void setLocatorTypeN2B(net.spy.memcached.ConnectionFactoryBuilder.Locator l)
public void setMaxReconnectDelayN2B(long to)
public void setAuthDescriptorN2B(net.spy.memcached.auth.AuthDescriptor to)
public void setTimeoutExceptionThresholdN2B(int to)
Copyright © 2020 Magnolia International Ltd.. All rights reserved.