Package net.rubyeye.xmemcached.aws
Class AWSElasticCacheClientBuilder
- java.lang.Object
-
- net.rubyeye.xmemcached.XMemcachedClientBuilder
-
- net.rubyeye.xmemcached.aws.AWSElasticCacheClientBuilder
-
- All Implemented Interfaces:
MemcachedClientBuilder
public class AWSElasticCacheClientBuilder extends XMemcachedClientBuilder
AWSElasticCacheClient builder.- Author:
- dennis
-
-
Field Summary
-
Fields 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
Constructors Constructor Description AWSElasticCacheClientBuilder(String serverList)Create a builder with an initial ElasticCache server list string in the form of "host:port host2:port".AWSElasticCacheClientBuilder(InetSocketAddress addr)Create a builder with an initial ElasticCache server.AWSElasticCacheClientBuilder(List<InetSocketAddress> configAddrs)Create a builder with initial ElasticCache server addresses.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AWSElasticCacheClientbuild()Returns a new instanceof AWSElasticCacheClient.List<InetSocketAddress>getConfigAddrs()Returns initial ElasticCache server addresses.longgetPollConfigIntervalMs()Returns pollConfigIntervalMs.voidsetConfigAddrs(List<InetSocketAddress> configAddrs)Set initial ElasticCache server addresses.voidsetPollConfigIntervalMs(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
-
-
-
-
Constructor Detail
-
AWSElasticCacheClientBuilder
public AWSElasticCacheClientBuilder(String serverList)
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
public AWSElasticCacheClientBuilder(InetSocketAddress addr)
Create a builder with an initial ElasticCache server.- Parameters:
addr-
-
AWSElasticCacheClientBuilder
public AWSElasticCacheClientBuilder(List<InetSocketAddress> configAddrs)
Create a builder with initial ElasticCache server addresses.- Parameters:
configAddrs-
-
-
Method Detail
-
getPollConfigIntervalMs
public long getPollConfigIntervalMs()
Returns pollConfigIntervalMs.- Returns:
-
setPollConfigIntervalMs
public void setPollConfigIntervalMs(long pollConfigIntervalMs)
Set poll config interval in milliseconds.- Parameters:
pollConfigIntervalMs-
-
getConfigAddrs
public List<InetSocketAddress> getConfigAddrs()
Returns initial ElasticCache server addresses.- Returns:
-
setConfigAddrs
public void setConfigAddrs(List<InetSocketAddress> configAddrs)
Set initial ElasticCache server addresses.- Parameters:
configAddrs-
-
build
public AWSElasticCacheClient build() throws IOException
Returns a new instanceof AWSElasticCacheClient.- Specified by:
buildin interfaceMemcachedClientBuilder- Overrides:
buildin classXMemcachedClientBuilder- Returns:
- Throws:
IOException
-
-