Package net.rubyeye.xmemcached.aws
Class AWSElasticCacheClientBuilder
java.lang.Object
net.rubyeye.xmemcached.XMemcachedClientBuilder
net.rubyeye.xmemcached.aws.AWSElasticCacheClientBuilder
- All Implemented Interfaces:
MemcachedClientBuilder
AWSElasticCacheClient builder.
-
Field Summary
FieldsFields inherited from class net.rubyeye.xmemcached.XMemcachedClientBuilder
addressMap, authInfoMap, bufferAllocator, commandFactory, configuration, connectionPoolSize, connectTimeout, enableHealSession, failureMode, healSessionInterval, keyProvider, maxQueuedNoReplyOperations, name, opTimeout, resolveInetAddresses, sanitizeKeys, sessionComparator, sessionLocator, socketOptions, stateListeners, transcoder, weights
-
Constructor Summary
ConstructorsConstructorDescriptionAWSElasticCacheClientBuilder
(String serverList) Create a builder with an initial ElasticCache server list string in the form of "host:port host2:port".Create a builder with an initial ElasticCache server.AWSElasticCacheClientBuilder
(List<InetSocketAddress> configAddrs) Create a builder with initial ElasticCache server addresses. -
Method Summary
Modifier and TypeMethodDescriptionprivate static List
<InetSocketAddress> asList
(InetSocketAddress addr) build()
Returns a new instanceof AWSElasticCacheClient.Returns initial ElasticCache server addresses.long
Returns pollConfigIntervalMs.void
setConfigAddrs
(List<InetSocketAddress> configAddrs) Set initial ElasticCache server addresses.void
setPollConfigIntervalMs
(long pollConfigIntervalMs) Set poll config interval in milliseconds.Methods inherited from class net.rubyeye.xmemcached.XMemcachedClientBuilder
addAuthInfo, addStateListener, configureClient, doNotResolveInetAddresses, getAuthInfoMap, getBufferAllocator, getCommandFactory, getConfiguration, getConnectTimeout, getDefaultConfiguration, getDefaultSocketOptions, getHealSessionInterval, getMaxQueuedNoReplyOperations, getName, getOpTimeout, getSessionComparator, getSessionLocator, getSocketOptions, getTranscoder, isEnableHealSession, isFailureMode, isResolveInetAddresses, removeAuthInfo, removeStateListener, setAuthInfoMap, setBufferAllocator, setCommandFactory, setConfiguration, setConnectionPoolSize, setConnectTimeout, setEnableHealSession, setFailureMode, setHealSessionInterval, setKeyProvider, setMaxQueuedNoReplyOperations, setName, setOpTimeout, setResolveInetAddresses, setSanitizeKeys, setSelectorPoolSize, setSessionComparator, setSessionLocator, setSocketOption, setStateListeners, setTranscoder
-
Field Details
-
configAddrs
-
pollConfigIntervalMs
private long pollConfigIntervalMs
-
-
Constructor Details
-
AWSElasticCacheClientBuilder
Create a builder with an initial ElasticCache server list string in the form of "host:port host2:port".- Parameters:
serverList
- server list string in the form of "host:port host2:port"
-
AWSElasticCacheClientBuilder
Create a builder with an initial ElasticCache server.- Parameters:
addr
-
-
AWSElasticCacheClientBuilder
Create a builder with initial ElasticCache server addresses.- Parameters:
configAddrs
-
-
-
Method Details
-
getPollConfigIntervalMs
public long getPollConfigIntervalMs()Returns pollConfigIntervalMs.- Returns:
-
setPollConfigIntervalMs
public void setPollConfigIntervalMs(long pollConfigIntervalMs) Set poll config interval in milliseconds.- Parameters:
pollConfigIntervalMs
-
-
getConfigAddrs
Returns initial ElasticCache server addresses.- Returns:
-
setConfigAddrs
Set initial ElasticCache server addresses.- Parameters:
configAddrs
-
-
asList
-
build
Returns a new instanceof AWSElasticCacheClient.- Specified by:
build
in interfaceMemcachedClientBuilder
- Overrides:
build
in classXMemcachedClientBuilder
- Returns:
- Throws:
IOException
-