Class ClientConnectionSettings
java.lang.Object
org.apache.pekko.http.javadsl.settings.ClientConnectionSettings
- Direct Known Subclasses:
ClientConnectionSettings
Public API but not intended for subclassing
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientConnectionSettingscreate(com.typesafe.config.Config config) static ClientConnectionSettingsstatic ClientConnectionSettingscreate(org.apache.pekko.actor.ActorSystem system) final DurationIn 2.0.0, the return type of this method changed fromscala.concurrent.duration.Durationtojava.time.Duration.final DurationIn 2.0.0, the return type of this method changed fromscala.concurrent.duration.Durationtojava.time.Duration.final Optional<InetSocketAddress>final ParserSettingsfinal intfinal Iterable<org.apache.pekko.io.Inet.SocketOption>final DurationIn 2.0.0, the return type of this method changed fromscala.concurrent.duration.Durationtojava.time.Duration.The underlying transport used to connect to hosts.final WebSocketSettingsabstract ClientConnectionSettingswithConnectingTimeout(Duration newValue) Java APIabstract ClientConnectionSettingswithConnectingTimeout(scala.concurrent.duration.FiniteDuration newValue) abstract ClientConnectionSettingswithIdleTimeout(Duration newValue) Java APIabstract ClientConnectionSettingswithIdleTimeout(scala.concurrent.duration.Duration newValue) withLocalAddress(Optional<InetSocketAddress> newValue) withLogUnencryptedNetworkBytes(Optional<Object> newValue) withParserSettings(ParserSettings newValue) abstract ClientConnectionSettingswithRequestHeaderSizeHint(int newValue) withSocketOptions(Iterable<org.apache.pekko.io.Inet.SocketOption> newValue) abstract ClientConnectionSettingswithStreamCancellationDelay(Duration newValue) Java APIabstract ClientConnectionSettingswithStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) withTransport(ClientTransport newValue) withUserAgentHeader(Optional<UserAgent> newValue) withWebsocketRandomFactory(Supplier<Random> newValue) withWebsocketSettings(WebSocketSettings newValue)
-
Constructor Details
-
ClientConnectionSettings
public ClientConnectionSettings()
-
-
Method Details
-
create
-
create
-
create
-
getConnectingTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Durationtojava.time.Duration.- Returns:
- (undocumented)
-
getParserSettings
-
getIdleTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Durationtojava.time.Duration.- Returns:
- (undocumented)
-
getSocketOptions
-
getUserAgentHeader
-
getLogUnencryptedNetworkBytes
-
getStreamCancellationDelay
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Durationtojava.time.Duration.- Returns:
- (undocumented)
-
getRequestHeaderSizeHint
public final int getRequestHeaderSizeHint() -
getWebsocketSettings
-
getWebsocketRandomFactory
-
getLocalAddress
-
getTransport
The underlying transport used to connect to hosts. By defaultClientTransport.TCPis used. -
withConnectingTimeout
public abstract ClientConnectionSettings withConnectingTimeout(scala.concurrent.duration.FiniteDuration newValue) -
withIdleTimeout
public abstract ClientConnectionSettings withIdleTimeout(scala.concurrent.duration.Duration newValue) -
withRequestHeaderSizeHint
-
withStreamCancellationDelay
public abstract ClientConnectionSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) -
withConnectingTimeout
Java API- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withIdleTimeout
Java API- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withStreamCancellationDelay
Java API- Parameters:
newValue- (undocumented)- Returns:
- (undocumented)
- Since:
- 1.3.0
-
withUserAgentHeader
-
withLogUnencryptedNetworkBytes
-
withWebsocketRandomFactory
-
withWebsocketSettings
-
withSocketOptions
public ClientConnectionSettings withSocketOptions(Iterable<org.apache.pekko.io.Inet.SocketOption> newValue) -
withParserSettings
-
withLocalAddress
-
withTransport
-