Class ConnectionPoolSettings
java.lang.Object
org.apache.pekko.http.javadsl.settings.ConnectionPoolSettings
- Direct Known Subclasses:
ConnectionPoolSettings
Public API but not intended for subclassing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendHostOverride
(String hostPattern, ConnectionPoolSettings settings) static ConnectionPoolSettings
create
(com.typesafe.config.Config config) static ConnectionPoolSettings
static ConnectionPoolSettings
create
(org.apache.pekko.actor.ActorSystem system) In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.int
int
int
int
int
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.abstract ConnectionPoolSettings
withBaseConnectionBackoff
(Duration newValue) Java APIabstract ConnectionPoolSettings
withBaseConnectionBackoff
(scala.concurrent.duration.FiniteDuration newValue) withHostOverrides
(List<scala.Tuple2<String, ConnectionPoolSettings>> hostOverrides) abstract ConnectionPoolSettings
withIdleTimeout
(Duration newValue) Java APIabstract ConnectionPoolSettings
withIdleTimeout
(scala.concurrent.duration.Duration newValue) abstract ConnectionPoolSettings
withKeepAliveTimeout
(Duration newValue) Java APIabstract ConnectionPoolSettings
withKeepAliveTimeout
(scala.concurrent.duration.Duration newValue) abstract ConnectionPoolSettings
withMaxConnectionBackoff
(Duration newValue) Java APIabstract ConnectionPoolSettings
withMaxConnectionBackoff
(scala.concurrent.duration.FiniteDuration newValue) abstract ConnectionPoolSettings
withMaxConnectionLifetime
(Duration newValue) Java APIabstract 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/32abstract ConnectionPoolSettings
Java APIabstract ConnectionPoolSettings
withResponseEntitySubscriptionTimeout
(scala.concurrent.duration.Duration newValue) withTransport
(ClientTransport newValue)
-
Constructor Details
-
ConnectionPoolSettings
public ConnectionPoolSettings()
-
-
Method Details
-
create
-
create
-
create
-
getMaxConnections
public int getMaxConnections() -
getMinConnections
public int getMinConnections() -
getMaxRetries
public int getMaxRetries() -
getMaxOpenRequests
public int getMaxOpenRequests() -
getPipeliningLimit
public int getPipeliningLimit() -
getMaxConnectionLifetime
-
getBaseConnectionBackoff
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getMaxConnectionBackoff
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getIdleTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getKeepAliveTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getConnectionSettings
-
getResponseEntitySubscriptionTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDuration
tojava.time.Duration
.- Returns:
- (undocumented)
-
withHostOverrides
public ConnectionPoolSettings withHostOverrides(List<scala.Tuple2<String, ConnectionPoolSettings>> hostOverrides) -
appendHostOverride
public ConnectionPoolSettings appendHostOverride(String hostPattern, ConnectionPoolSettings settings) -
withMaxConnections
-
withMinConnections
-
withMaxRetries
-
withMaxOpenRequests
-
withPipeliningLimit
Client-side pipelining is not currently supported, see https://github.com/akka/akka-http/issues/32 -
withBaseConnectionBackoff
public abstract ConnectionPoolSettings withBaseConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue) -
withBaseConnectionBackoff
Java API- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withMaxConnectionBackoff
public abstract ConnectionPoolSettings withMaxConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue) -
withMaxConnectionBackoff
Java API- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withIdleTimeout
-
withIdleTimeout
Java API- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withKeepAliveTimeout
public abstract ConnectionPoolSettings withKeepAliveTimeout(scala.concurrent.duration.Duration newValue) -
withKeepAliveTimeout
Java API- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withMaxConnectionLifetime
public abstract ConnectionPoolSettings withMaxConnectionLifetime(scala.concurrent.duration.Duration newValue) -
withMaxConnectionLifetime
Java API- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withConnectionSettings
-
withResponseEntitySubscriptionTimeout
public abstract ConnectionPoolSettings withResponseEntitySubscriptionTimeout(scala.concurrent.duration.Duration newValue) -
withResponseEntitySubscriptionTimeout
Java API- Parameters:
newValue
- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withTransport
-