public class AWSElasticCacheClientBuilder extends XMemcachedClientBuilder
addressMap, authInfoMap, bufferAllocator, commandFactory, configuration, connectionPoolSize, connectTimeout, enableHealSession, failureMode, healSessionInterval, keyProvider, maxQueuedNoReplyOperations, name, opTimeout, resolveInetAddresses, sanitizeKeys, sessionComparator, sessionLocator, socketOptions, stateListeners, transcoder, weights
Constructor and Description |
---|
AWSElasticCacheClientBuilder(InetSocketAddress addr)
Create a builder with an initial ElasticCache server.
|
AWSElasticCacheClientBuilder(List<InetSocketAddress> configAddrs)
Create a builder with initial ElasticCache server addresses.
|
AWSElasticCacheClientBuilder(String serverList)
Create a builder with an initial ElasticCache server list string in the form of "host:port
host2:port".
|
Modifier and Type | Method and Description |
---|---|
AWSElasticCacheClient |
build()
Returns a new instanceof AWSElasticCacheClient.
|
List<InetSocketAddress> |
getConfigAddrs()
Returns initial ElasticCache server addresses.
|
long |
getPollConfigIntervalMs()
Returns pollConfigIntervalMs.
|
void |
setConfigAddrs(List<InetSocketAddress> configAddrs)
Set initial ElasticCache server addresses.
|
void |
setPollConfigIntervalMs(long pollConfigIntervalMs)
Set poll config interval in milliseconds.
|
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
public AWSElasticCacheClientBuilder(String serverList)
serverList
- server list string in the form of "host:port host2:port"public AWSElasticCacheClientBuilder(InetSocketAddress addr)
addr
- public AWSElasticCacheClientBuilder(List<InetSocketAddress> configAddrs)
configAddrs
- public long getPollConfigIntervalMs()
public void setPollConfigIntervalMs(long pollConfigIntervalMs)
pollConfigIntervalMs
- public List<InetSocketAddress> getConfigAddrs()
public void setConfigAddrs(List<InetSocketAddress> configAddrs)
configAddrs
- public AWSElasticCacheClient build() throws IOException
build
in interface MemcachedClientBuilder
build
in class XMemcachedClientBuilder
IOException
Copyright © 2021. All rights reserved.