public abstract class ConnectionPoolSettings
extends java.lang.Object
Constructor and Description |
---|
ConnectionPoolSettings() |
Modifier and Type | Method and Description |
---|---|
ConnectionPoolSettings |
appendHostOverride(java.lang.String hostPattern,
ConnectionPoolSettings settings) |
static ConnectionPoolSettings |
create(org.apache.pekko.actor.ActorSystem system) |
static ConnectionPoolSettings |
create(com.typesafe.config.Config config) |
static ConnectionPoolSettings |
create(java.lang.String configOverrides) |
scala.concurrent.duration.FiniteDuration |
getBaseConnectionBackoff() |
ClientConnectionSettings |
getConnectionSettings() |
scala.concurrent.duration.Duration |
getIdleTimeout() |
scala.concurrent.duration.Duration |
getKeepAliveTimeout() |
scala.concurrent.duration.FiniteDuration |
getMaxConnectionBackoff() |
java.time.Duration |
getMaxConnectionLifetime() |
int |
getMaxConnections() |
int |
getMaxOpenRequests() |
int |
getMaxRetries() |
int |
getMinConnections() |
int |
getPipeliningLimit() |
scala.concurrent.duration.Duration |
getResponseEntitySubscriptionTimeout() |
abstract ConnectionPoolSettings |
withBaseConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue) |
ConnectionPoolSettings |
withConnectionSettings(ClientConnectionSettings newValue) |
ConnectionPoolSettings |
withHostOverrides(java.util.List<scala.Tuple2<java.lang.String,ConnectionPoolSettings>> hostOverrides) |
abstract ConnectionPoolSettings |
withIdleTimeout(scala.concurrent.duration.Duration newValue) |
abstract ConnectionPoolSettings |
withKeepAliveTimeout(scala.concurrent.duration.Duration newValue) |
abstract ConnectionPoolSettings |
withMaxConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue) |
abstract ConnectionPoolSettings |
withMaxConnectionLifetime(scala.concurrent.duration.Duration newValue) |
abstract ConnectionPoolSettings |
withMaxConnections(int n) |
abstract ConnectionPoolSettings |
withMaxOpenRequests(int newValue) |
abstract ConnectionPoolSettings |
withMaxRetries(int n) |
abstract ConnectionPoolSettings |
withMinConnections(int n) |
abstract ConnectionPoolSettings |
withPipeliningLimit(int newValue)
Client-side pipelining is not currently supported, see https://github.com/akka/akka-http/issues/32
|
abstract ConnectionPoolSettings |
withResponseEntitySubscriptionTimeout(scala.concurrent.duration.Duration newValue) |
ConnectionPoolSettings |
withTransport(ClientTransport newValue) |
public static ConnectionPoolSettings create(com.typesafe.config.Config config)
public static ConnectionPoolSettings create(java.lang.String configOverrides)
public static ConnectionPoolSettings create(org.apache.pekko.actor.ActorSystem system)
public int getMaxConnections()
public int getMinConnections()
public int getMaxRetries()
public int getMaxOpenRequests()
public int getPipeliningLimit()
public java.time.Duration getMaxConnectionLifetime()
public scala.concurrent.duration.FiniteDuration getBaseConnectionBackoff()
public scala.concurrent.duration.FiniteDuration getMaxConnectionBackoff()
public scala.concurrent.duration.Duration getIdleTimeout()
public scala.concurrent.duration.Duration getKeepAliveTimeout()
public ClientConnectionSettings getConnectionSettings()
public scala.concurrent.duration.Duration getResponseEntitySubscriptionTimeout()
public ConnectionPoolSettings withHostOverrides(java.util.List<scala.Tuple2<java.lang.String,ConnectionPoolSettings>> hostOverrides)
public ConnectionPoolSettings appendHostOverride(java.lang.String hostPattern, ConnectionPoolSettings settings)
public abstract ConnectionPoolSettings withMaxConnections(int n)
public abstract ConnectionPoolSettings withMinConnections(int n)
public abstract ConnectionPoolSettings withMaxRetries(int n)
public abstract ConnectionPoolSettings withMaxOpenRequests(int newValue)
public abstract ConnectionPoolSettings withPipeliningLimit(int newValue)
public abstract ConnectionPoolSettings withBaseConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue)
public abstract ConnectionPoolSettings withMaxConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue)
public abstract ConnectionPoolSettings withIdleTimeout(scala.concurrent.duration.Duration newValue)
public abstract ConnectionPoolSettings withKeepAliveTimeout(scala.concurrent.duration.Duration newValue)
public abstract ConnectionPoolSettings withMaxConnectionLifetime(scala.concurrent.duration.Duration newValue)
public ConnectionPoolSettings withConnectionSettings(ClientConnectionSettings newValue)
public abstract ConnectionPoolSettings withResponseEntitySubscriptionTimeout(scala.concurrent.duration.Duration newValue)
public ConnectionPoolSettings withTransport(ClientTransport newValue)