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
  • Constructor Details

    • 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 Details

    • 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:
      build in interface MemcachedClientBuilder
      Overrides:
      build in class XMemcachedClientBuilder
      Returns:
      Throws:
      IOException