Package akka.http.impl.settings
Class ConnectionPoolSettingsImpl
- java.lang.Object
-
- akka.http.javadsl.settings.ConnectionPoolSettings
-
- akka.http.scaladsl.settings.ConnectionPoolSettings
-
- akka.http.impl.settings.ConnectionPoolSettingsImpl
-
- All Implemented Interfaces:
java.io.Serializable
,scala.Equals
,scala.Product
public final class ConnectionPoolSettingsImpl extends ConnectionPoolSettings implements scala.Product, java.io.Serializable
INTERNAL API- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConnectionPoolSettingsImpl(int maxConnections, int minConnections, int maxRetries, int maxOpenRequests, int pipeliningLimit, scala.concurrent.duration.Duration maxConnectionLifetime, scala.concurrent.duration.FiniteDuration baseConnectionBackoff, scala.concurrent.duration.FiniteDuration maxConnectionBackoff, scala.concurrent.duration.Duration idleTimeout, scala.concurrent.duration.Duration keepAliveTimeout, ClientConnectionSettings connectionSettings, scala.concurrent.duration.Duration responseEntitySubscriptionTimeout, scala.collection.immutable.Seq<scala.Tuple2<scala.util.matching.Regex,ConnectionPoolSettings>> hostOverrides)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static T
apply(akka.actor.ActorSystem system)
static T
apply(com.typesafe.config.Config config)
static T
apply(java.lang.String configOverrides)
scala.concurrent.duration.FiniteDuration
baseConnectionBackoff()
ClientConnectionSettings
connectionSettings()
ConnectionPoolSettings
copyDeep(scala.Function1<ConnectionPoolSettings,ConnectionPoolSettings> mapHostOverrides, int maxConnections, int minConnections, int maxRetries, int maxOpenRequests, int pipeliningLimit, scala.concurrent.duration.Duration maxConnectionLifetime, scala.concurrent.duration.FiniteDuration baseConnectionBackoff, scala.concurrent.duration.FiniteDuration maxConnectionBackoff, scala.concurrent.duration.Duration idleTimeout, scala.concurrent.duration.Duration keepAliveTimeout, ClientConnectionSettings connectionSettings, scala.concurrent.duration.Duration responseEntitySubscriptionTimeout)
INTERNAL APIstatic ConnectionPoolSettingsImpl
fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c)
scala.collection.immutable.Seq<scala.Tuple2<scala.util.matching.Regex,ConnectionPoolSettings>>
hostOverrides()
static scala.util.matching.Regex
hostRegex(java.lang.String pattern)
scala.concurrent.duration.Duration
idleTimeout()
scala.concurrent.duration.Duration
keepAliveTimeout()
scala.concurrent.duration.FiniteDuration
maxConnectionBackoff()
scala.concurrent.duration.Duration
maxConnectionLifetime()
int
maxConnections()
int
maxOpenRequests()
int
maxRetries()
int
minConnections()
int
pipeliningLimit()
protected static java.lang.String
prefix()
java.lang.String
productPrefix()
scala.concurrent.duration.Duration
responseEntitySubscriptionTimeout()
The time after which the pool will drop an entity automatically if it wasn't read or discardedConnectionPoolSettingsImpl
withUpdatedConnectionSettings(scala.Function1<ClientConnectionSettings,ClientConnectionSettings> f)
-
Methods inherited from class akka.http.scaladsl.settings.ConnectionPoolSettings
appendHostOverride, forHost, transport, withBaseConnectionBackoff, withConnectionSettings, withHostOverrides, withIdleTimeout, withKeepAliveTimeout, withMaxConnectionBackoff, withMaxConnectionLifetime, withMaxConnections, withMaxOpenRequests, withMaxRetries, withMinConnections, withPipeliningLimit, withResponseEntitySubscriptionTimeout, withTransport
-
Methods inherited from class akka.http.javadsl.settings.ConnectionPoolSettings
appendHostOverride, create, create, create, getBaseConnectionBackoff, getConnectionSettings, getIdleTimeout, getKeepAliveTimeout, getMaxConnectionBackoff, getMaxConnectionLifetime, getMaxConnections, getMaxOpenRequests, getMaxRetries, getMinConnections, getPipeliningLimit, getResponseEntitySubscriptionTimeout, withConnectionSettings, withHostOverrides, withTransport
-
-
-
-
Constructor Detail
-
ConnectionPoolSettingsImpl
public ConnectionPoolSettingsImpl(int maxConnections, int minConnections, int maxRetries, int maxOpenRequests, int pipeliningLimit, scala.concurrent.duration.Duration maxConnectionLifetime, scala.concurrent.duration.FiniteDuration baseConnectionBackoff, scala.concurrent.duration.FiniteDuration maxConnectionBackoff, scala.concurrent.duration.Duration idleTimeout, scala.concurrent.duration.Duration keepAliveTimeout, ClientConnectionSettings connectionSettings, scala.concurrent.duration.Duration responseEntitySubscriptionTimeout, scala.collection.immutable.Seq<scala.Tuple2<scala.util.matching.Regex,ConnectionPoolSettings>> hostOverrides)
-
-
Method Detail
-
fromSubConfig
public static ConnectionPoolSettingsImpl fromSubConfig(com.typesafe.config.Config root, com.typesafe.config.Config c)
-
hostRegex
public static scala.util.matching.Regex hostRegex(java.lang.String pattern)
-
prefix
protected static java.lang.String prefix()
-
apply
public static T apply(akka.actor.ActorSystem system)
-
apply
public static T apply(java.lang.String configOverrides)
-
apply
public static T apply(com.typesafe.config.Config config)
-
maxConnections
public int maxConnections()
- Specified by:
maxConnections
in classConnectionPoolSettings
-
minConnections
public int minConnections()
- Specified by:
minConnections
in classConnectionPoolSettings
-
maxRetries
public int maxRetries()
- Specified by:
maxRetries
in classConnectionPoolSettings
-
maxOpenRequests
public int maxOpenRequests()
- Specified by:
maxOpenRequests
in classConnectionPoolSettings
-
pipeliningLimit
public int pipeliningLimit()
- Specified by:
pipeliningLimit
in classConnectionPoolSettings
-
maxConnectionLifetime
public scala.concurrent.duration.Duration maxConnectionLifetime()
- Specified by:
maxConnectionLifetime
in classConnectionPoolSettings
-
baseConnectionBackoff
public scala.concurrent.duration.FiniteDuration baseConnectionBackoff()
- Specified by:
baseConnectionBackoff
in classConnectionPoolSettings
-
maxConnectionBackoff
public scala.concurrent.duration.FiniteDuration maxConnectionBackoff()
- Specified by:
maxConnectionBackoff
in classConnectionPoolSettings
-
idleTimeout
public scala.concurrent.duration.Duration idleTimeout()
- Specified by:
idleTimeout
in classConnectionPoolSettings
-
keepAliveTimeout
public scala.concurrent.duration.Duration keepAliveTimeout()
- Specified by:
keepAliveTimeout
in classConnectionPoolSettings
-
connectionSettings
public ClientConnectionSettings connectionSettings()
- Specified by:
connectionSettings
in classConnectionPoolSettings
-
responseEntitySubscriptionTimeout
public scala.concurrent.duration.Duration responseEntitySubscriptionTimeout()
Description copied from class:ConnectionPoolSettings
The time after which the pool will drop an entity automatically if it wasn't read or discarded- Specified by:
responseEntitySubscriptionTimeout
in classConnectionPoolSettings
-
hostOverrides
public scala.collection.immutable.Seq<scala.Tuple2<scala.util.matching.Regex,ConnectionPoolSettings>> hostOverrides()
- Specified by:
hostOverrides
in classConnectionPoolSettings
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
withUpdatedConnectionSettings
public ConnectionPoolSettingsImpl withUpdatedConnectionSettings(scala.Function1<ClientConnectionSettings,ClientConnectionSettings> f)
- Specified by:
withUpdatedConnectionSettings
in classConnectionPoolSettings
-
copyDeep
public ConnectionPoolSettings copyDeep(scala.Function1<ConnectionPoolSettings,ConnectionPoolSettings> mapHostOverrides, int maxConnections, int minConnections, int maxRetries, int maxOpenRequests, int pipeliningLimit, scala.concurrent.duration.Duration maxConnectionLifetime, scala.concurrent.duration.FiniteDuration baseConnectionBackoff, scala.concurrent.duration.FiniteDuration maxConnectionBackoff, scala.concurrent.duration.Duration idleTimeout, scala.concurrent.duration.Duration keepAliveTimeout, ClientConnectionSettings connectionSettings, scala.concurrent.duration.Duration responseEntitySubscriptionTimeout)
INTERNAL API
-
-