Class ElastiCacheConfig.Builder

Enclosing class:
ElastiCacheConfig

public static class ElastiCacheConfig.Builder extends AbstractServiceConfigBuilder<ElastiCacheConfig.Builder,ElastiCacheConfig>
Builder for ElastiCacheConfig.
  • Method Details

    • proxyPortRange

      public ElastiCacheConfig.Builder proxyPortRange(int basePort, int amount)
      Sets the port range for the ElastiCache proxy.
      Parameters:
      basePort - the base port (default 6379)
      amount - the amount of ports (default 10)
      Returns:
      this builder
    • defaultImage

      public ElastiCacheConfig.Builder defaultImage(String defaultImage)
      Sets the default Docker image for ElastiCache (Valkey) instances.
      Parameters:
      defaultImage - the image name (default "valkey/valkey:8")
      Returns:
      this builder
    • defaultMemcachedImage

      public ElastiCacheConfig.Builder defaultMemcachedImage(String defaultMemcachedImage)
      Sets the default Docker image for Memcached instances.
      Parameters:
      defaultMemcachedImage - the Memcached image name (default "memcached:1.6")
      Returns:
      this builder
    • dockerNetwork

      public ElastiCacheConfig.Builder dockerNetwork(String dockerNetwork)
      Sets the Docker network that ElastiCache containers should join.
      Parameters:
      dockerNetwork - the network name, or null to use the default bridge
      Returns:
      this builder
    • build

      public ElastiCacheConfig build()
      Creates an immutable ElastiCacheConfig from this builder.
      Specified by:
      build in class AbstractServiceConfigBuilder<ElastiCacheConfig.Builder,ElastiCacheConfig>
      Returns:
      the ElastiCache configuration