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.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<java.net.InetSocketAddress>configAddrsprivate longpollConfigIntervalMs-
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(java.lang.String serverList)Create a builder with an initial ElasticCache server list string in the form of "host:port host2:port".AWSElasticCacheClientBuilder(java.net.InetSocketAddress addr)Create a builder with an initial ElasticCache server.AWSElasticCacheClientBuilder(java.util.List<java.net.InetSocketAddress> configAddrs)Create a builder with initial ElasticCache server addresses.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.util.List<java.net.InetSocketAddress>asList(java.net.InetSocketAddress addr)AWSElasticCacheClientbuild()Returns a new instanceof AWSElasticCacheClient.java.util.List<java.net.InetSocketAddress>getConfigAddrs()Returns initial ElasticCache server addresses.longgetPollConfigIntervalMs()Returns pollConfigIntervalMs.voidsetConfigAddrs(java.util.List<java.net.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(java.lang.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(java.net.InetSocketAddress addr)
Create a builder with an initial ElasticCache server.- Parameters:
addr-
-
AWSElasticCacheClientBuilder
public AWSElasticCacheClientBuilder(java.util.List<java.net.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 java.util.List<java.net.InetSocketAddress> getConfigAddrs()
Returns initial ElasticCache server addresses.- Returns:
-
setConfigAddrs
public void setConfigAddrs(java.util.List<java.net.InetSocketAddress> configAddrs)
Set initial ElasticCache server addresses.- Parameters:
configAddrs-
-
asList
private static java.util.List<java.net.InetSocketAddress> asList(java.net.InetSocketAddress addr)
-
build
public AWSElasticCacheClient build() throws java.io.IOException
Returns a new instanceof AWSElasticCacheClient.- Specified by:
buildin interfaceMemcachedClientBuilder- Overrides:
buildin classXMemcachedClientBuilder- Returns:
- Throws:
java.io.IOException
-
-