Class ClientResolverConfig

java.lang.Object
io.vertx.core.http.ClientResolverConfig

public class ClientResolverConfig extends Object
Configuration of a client resolver, the resolver translates a logical address into a socket address and a port.
  • Field Details

    • DEFAULT_KEEP_ALIVE_TIMEOUT

      public static final Duration DEFAULT_KEEP_ALIVE_TIMEOUT
      The default keep alive timeout : 1 minute
    • DEFAULT_MAX_KEEP_ALIVE

      public static final Duration DEFAULT_MAX_KEEP_ALIVE
      The default max keep alive : 5 minute
  • Constructor Details

    • ClientResolverConfig

      public ClientResolverConfig()
    • ClientResolverConfig

      public ClientResolverConfig(ClientResolverConfig other)
  • Method Details

    • getKeepAliveTimeout

      public Duration getKeepAliveTimeout()
      Returns:
      the amoutn of time after which an unused entry is evicted
    • setKeepAliveTimeout

      public ClientResolverConfig setKeepAliveTimeout(Duration amount)
      Set the amount of time after which an unused entry is evicted.
      Parameters:
      amount - the amount of time
      Returns:
      a reference to this, so the API can be used fluently
    • getMaxKeepAlive

      public Duration getMaxKeepAlive()
      Returns:
      the maximum amount of time after which an entry is evicted
    • setMaxKeepAlive

      public ClientResolverConfig setMaxKeepAlive(Duration amount)
      Set the maximum amount of time after which an entry is evicted.
      Parameters:
      amount - the amount of time
      Returns:
      a reference to this, so the API can be used fluently