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 ConnectionPoolSettingscreate(com.typesafe.config.Config config) static ConnectionPoolSettingsstatic ConnectionPoolSettingscreate(org.apache.pekko.actor.ActorSystem system) In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.intintintintintIn 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.abstract ConnectionPoolSettingswithBaseConnectionBackoff(Duration newValue) Java APIabstract ConnectionPoolSettingswithBaseConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue) withHostOverrides(List<scala.Tuple2<String, ConnectionPoolSettings>> hostOverrides) abstract ConnectionPoolSettingswithIdleTimeout(Duration newValue) Java APIabstract ConnectionPoolSettingswithIdleTimeout(scala.concurrent.duration.Duration newValue) abstract ConnectionPoolSettingswithKeepAliveTimeout(Duration newValue) Java APIabstract ConnectionPoolSettingswithKeepAliveTimeout(scala.concurrent.duration.Duration newValue) abstract ConnectionPoolSettingswithMaxConnectionBackoff(Duration newValue) Java APIabstract ConnectionPoolSettingswithMaxConnectionBackoff(scala.concurrent.duration.FiniteDuration newValue) abstract ConnectionPoolSettingswithMaxConnectionLifetime(Duration newValue) Java APIabstract ConnectionPoolSettingswithMaxConnectionLifetime(scala.concurrent.duration.Duration newValue) abstract ConnectionPoolSettingswithMaxConnections(int n) abstract ConnectionPoolSettingswithMaxOpenRequests(int newValue) abstract ConnectionPoolSettingswithMaxRetries(int n) abstract ConnectionPoolSettingswithMinConnections(int n) abstract ConnectionPoolSettingswithPipeliningLimit(int newValue) Client-side pipelining is not currently supported, see https://github.com/akka/akka-http/issues/32abstract ConnectionPoolSettingsJava APIabstract ConnectionPoolSettingswithResponseEntitySubscriptionTimeout(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.FiniteDurationtojava.time.Duration.- Returns:
- (undocumented)
-
getMaxConnectionBackoff
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.- Returns:
- (undocumented)
-
getIdleTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.- Returns:
- (undocumented)
-
getKeepAliveTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.time.Duration.- Returns:
- (undocumented)
-
getConnectionSettings
-
getResponseEntitySubscriptionTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.FiniteDurationtojava.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
-