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 ClientConnectionSettings
create
(com.typesafe.config.Config config) static ClientConnectionSettings
static ClientConnectionSettings
create
(org.apache.pekko.actor.ActorSystem system) final Duration
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Duration
tojava.time.Duration
.final Duration
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Duration
tojava.time.Duration
.final Optional<InetSocketAddress>
final ParserSettings
final int
final Iterable<org.apache.pekko.io.Inet.SocketOption>
final Duration
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Duration
tojava.time.Duration
.The underlying transport used to connect to hosts.final WebSocketSettings
abstract ClientConnectionSettings
withConnectingTimeout
(Duration newValue) Java APIabstract ClientConnectionSettings
withConnectingTimeout
(scala.concurrent.duration.FiniteDuration newValue) abstract ClientConnectionSettings
withIdleTimeout
(Duration newValue) Java APIabstract ClientConnectionSettings
withIdleTimeout
(scala.concurrent.duration.Duration newValue) withLocalAddress
(Optional<InetSocketAddress> newValue) withLogUnencryptedNetworkBytes
(Optional<Object> newValue) withParserSettings
(ParserSettings newValue) abstract ClientConnectionSettings
withRequestHeaderSizeHint
(int newValue) withSocketOptions
(Iterable<org.apache.pekko.io.Inet.SocketOption> newValue) abstract ClientConnectionSettings
withStreamCancellationDelay
(Duration newValue) Java APIabstract ClientConnectionSettings
withStreamCancellationDelay
(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.Duration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getParserSettings
-
getIdleTimeout
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Duration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getSocketOptions
-
getUserAgentHeader
-
getLogUnencryptedNetworkBytes
-
getStreamCancellationDelay
In 2.0.0, the return type of this method changed fromscala.concurrent.duration.Duration
tojava.time.Duration
.- Returns:
- (undocumented)
-
getRequestHeaderSizeHint
public final int getRequestHeaderSizeHint() -
getWebsocketSettings
-
getWebsocketRandomFactory
-
getLocalAddress
-
getTransport
The underlying transport used to connect to hosts. By defaultClientTransport.TCP
is 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
-