public abstract class ClientConnectionSettings
extends java.lang.Object
Constructor and Description |
---|
ClientConnectionSettings() |
Modifier and Type | Method and Description |
---|---|
static ClientConnectionSettings |
create(org.apache.pekko.actor.ActorSystem system) |
static ClientConnectionSettings |
create(com.typesafe.config.Config config) |
static ClientConnectionSettings |
create(java.lang.String configOverrides) |
scala.concurrent.duration.FiniteDuration |
getConnectingTimeout() |
scala.concurrent.duration.Duration |
getIdleTimeout() |
java.util.Optional<java.net.InetSocketAddress> |
getLocalAddress() |
java.util.Optional<java.lang.Object> |
getLogUnencryptedNetworkBytes() |
ParserSettings |
getParserSettings() |
int |
getRequestHeaderSizeHint() |
java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> |
getSocketOptions() |
scala.concurrent.duration.FiniteDuration |
getStreamCancellationDelay() |
ClientTransport |
getTransport()
The underlying transport used to connect to hosts.
|
java.util.Optional<UserAgent> |
getUserAgentHeader() |
java.util.function.Supplier<java.util.Random> |
getWebsocketRandomFactory() |
WebSocketSettings |
getWebsocketSettings() |
abstract ClientConnectionSettings |
withConnectingTimeout(scala.concurrent.duration.FiniteDuration newValue) |
abstract ClientConnectionSettings |
withIdleTimeout(scala.concurrent.duration.Duration newValue) |
ClientConnectionSettings |
withLocalAddress(java.util.Optional<java.net.InetSocketAddress> newValue) |
ClientConnectionSettings |
withLogUnencryptedNetworkBytes(java.util.Optional<java.lang.Object> newValue) |
ClientConnectionSettings |
withParserSettings(ParserSettings newValue) |
abstract ClientConnectionSettings |
withRequestHeaderSizeHint(int newValue) |
ClientConnectionSettings |
withSocketOptions(java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> newValue) |
abstract ClientConnectionSettings |
withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) |
ClientConnectionSettings |
withTransport(ClientTransport newValue) |
ClientConnectionSettings |
withUserAgentHeader(java.util.Optional<UserAgent> newValue) |
ClientConnectionSettings |
withWebsocketRandomFactory(java.util.function.Supplier<java.util.Random> newValue) |
ClientConnectionSettings |
withWebsocketSettings(WebSocketSettings newValue) |
public static ClientConnectionSettings create(com.typesafe.config.Config config)
public static ClientConnectionSettings create(java.lang.String configOverrides)
public static ClientConnectionSettings create(org.apache.pekko.actor.ActorSystem system)
public final scala.concurrent.duration.FiniteDuration getConnectingTimeout()
public final ParserSettings getParserSettings()
public final scala.concurrent.duration.Duration getIdleTimeout()
public final java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> getSocketOptions()
public final java.util.Optional<UserAgent> getUserAgentHeader()
public final java.util.Optional<java.lang.Object> getLogUnencryptedNetworkBytes()
public final scala.concurrent.duration.FiniteDuration getStreamCancellationDelay()
public final int getRequestHeaderSizeHint()
public final WebSocketSettings getWebsocketSettings()
public final java.util.function.Supplier<java.util.Random> getWebsocketRandomFactory()
public final java.util.Optional<java.net.InetSocketAddress> getLocalAddress()
public ClientTransport getTransport()
ClientTransport.TCP
is used.public abstract ClientConnectionSettings withConnectingTimeout(scala.concurrent.duration.FiniteDuration newValue)
public abstract ClientConnectionSettings withIdleTimeout(scala.concurrent.duration.Duration newValue)
public abstract ClientConnectionSettings withRequestHeaderSizeHint(int newValue)
public abstract ClientConnectionSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue)
public ClientConnectionSettings withUserAgentHeader(java.util.Optional<UserAgent> newValue)
public ClientConnectionSettings withLogUnencryptedNetworkBytes(java.util.Optional<java.lang.Object> newValue)
public ClientConnectionSettings withWebsocketRandomFactory(java.util.function.Supplier<java.util.Random> newValue)
public ClientConnectionSettings withWebsocketSettings(WebSocketSettings newValue)
public ClientConnectionSettings withSocketOptions(java.lang.Iterable<org.apache.pekko.io.Inet.SocketOption> newValue)
public ClientConnectionSettings withParserSettings(ParserSettings newValue)
public ClientConnectionSettings withLocalAddress(java.util.Optional<java.net.InetSocketAddress> newValue)
public ClientConnectionSettings withTransport(ClientTransport newValue)