public abstract class ClientConnectionSettings extends ClientConnectionSettings
Modifier and Type | Class and Description |
---|---|
static class |
ClientConnectionSettings.LogUnencryptedNetworkBytes$ |
Constructor and Description |
---|
ClientConnectionSettings() |
Modifier and Type | Method and Description |
---|---|
static ClientConnectionSettings |
apply(com.typesafe.config.Config config) |
static ClientConnectionSettings |
apply(java.lang.String configOverrides) |
abstract scala.concurrent.duration.FiniteDuration |
connectingTimeout() |
abstract Http2ClientSettings |
http2Settings() |
abstract scala.concurrent.duration.Duration |
idleTimeout() |
abstract scala.Option<java.net.InetSocketAddress> |
localAddress() |
abstract scala.Option<java.lang.Object> |
logUnencryptedNetworkBytes() |
ClientConnectionSettings |
mapHttp2Settings(scala.Function1<Http2ClientSettings,Http2ClientSettings> f) |
abstract ParserSettings |
parserSettings() |
abstract int |
requestHeaderSizeHint() |
abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> |
socketOptions() |
abstract scala.concurrent.duration.FiniteDuration |
streamCancellationDelay() |
abstract ClientTransport |
transport()
The underlying transport used to connect to hosts.
|
abstract scala.Option<User$minusAgent> |
userAgentHeader() |
abstract scala.Function0<java.util.Random> |
websocketRandomFactory() |
abstract WebSocketSettings |
websocketSettings() |
ClientConnectionSettings |
withConnectingTimeout(scala.concurrent.duration.FiniteDuration newValue) |
ClientConnectionSettings |
withHttp2Settings(Http2ClientSettings newValue) |
ClientConnectionSettings |
withIdleTimeout(scala.concurrent.duration.Duration newValue) |
ClientConnectionSettings |
withLocalAddress(scala.Option<java.net.InetSocketAddress> newValue) |
ClientConnectionSettings |
withLocalAddressOverride(scala.Option<java.net.InetSocketAddress> overrideLocalAddressOption)
Returns a new instance with the given local address set if the given override is
Some(address) , otherwise
return this instance unchanged. |
ClientConnectionSettings |
withLogUnencryptedNetworkBytes(scala.Option<java.lang.Object> newValue) |
ClientConnectionSettings |
withParserSettings(ParserSettings newValue) |
ClientConnectionSettings |
withRequestHeaderSizeHint(int newValue) |
ClientConnectionSettings |
withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue) |
ClientConnectionSettings |
withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue) |
ClientConnectionSettings |
withTransport(ClientTransport newTransport) |
ClientConnectionSettings |
withUserAgentHeader(scala.Option<User$minusAgent> newValue) |
ClientConnectionSettings |
withWebsocketRandomFactory(scala.Function0<java.util.Random> newValue) |
ClientConnectionSettings |
withWebsocketSettings(WebSocketSettings newValue) |
create, create, create, getConnectingTimeout, getIdleTimeout, getLocalAddress, getLogUnencryptedNetworkBytes, getParserSettings, getRequestHeaderSizeHint, getSocketOptions, getStreamCancellationDelay, getTransport, getUserAgentHeader, getWebsocketRandomFactory, getWebsocketSettings, withLocalAddress, withLogUnencryptedNetworkBytes, withParserSettings, withSocketOptions, withTransport, withUserAgentHeader, withWebsocketRandomFactory, withWebsocketSettings
public static ClientConnectionSettings apply(com.typesafe.config.Config config)
public static ClientConnectionSettings apply(java.lang.String configOverrides)
public abstract scala.Option<User$minusAgent> userAgentHeader()
public abstract scala.concurrent.duration.FiniteDuration connectingTimeout()
public abstract scala.concurrent.duration.Duration idleTimeout()
public abstract int requestHeaderSizeHint()
public abstract WebSocketSettings websocketSettings()
public abstract scala.Function0<java.util.Random> websocketRandomFactory()
public abstract scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> socketOptions()
public abstract ParserSettings parserSettings()
public abstract scala.Option<java.lang.Object> logUnencryptedNetworkBytes()
public abstract scala.concurrent.duration.FiniteDuration streamCancellationDelay()
public abstract scala.Option<java.net.InetSocketAddress> localAddress()
public abstract Http2ClientSettings http2Settings()
public abstract ClientTransport transport()
ClientTransport.TCP
is used.public ClientConnectionSettings withConnectingTimeout(scala.concurrent.duration.FiniteDuration newValue)
withConnectingTimeout
in class ClientConnectionSettings
public ClientConnectionSettings withIdleTimeout(scala.concurrent.duration.Duration newValue)
withIdleTimeout
in class ClientConnectionSettings
public ClientConnectionSettings withRequestHeaderSizeHint(int newValue)
withRequestHeaderSizeHint
in class ClientConnectionSettings
public ClientConnectionSettings withStreamCancellationDelay(scala.concurrent.duration.FiniteDuration newValue)
withStreamCancellationDelay
in class ClientConnectionSettings
public ClientConnectionSettings withWebsocketSettings(WebSocketSettings newValue)
public ClientConnectionSettings withWebsocketRandomFactory(scala.Function0<java.util.Random> newValue)
public ClientConnectionSettings withUserAgentHeader(scala.Option<User$minusAgent> newValue)
public ClientConnectionSettings withLogUnencryptedNetworkBytes(scala.Option<java.lang.Object> newValue)
public ClientConnectionSettings withSocketOptions(scala.collection.immutable.Seq<org.apache.pekko.io.Inet.SocketOption> newValue)
public ClientConnectionSettings withParserSettings(ParserSettings newValue)
public ClientConnectionSettings withLocalAddress(scala.Option<java.net.InetSocketAddress> newValue)
public ClientConnectionSettings withHttp2Settings(Http2ClientSettings newValue)
public ClientConnectionSettings withTransport(ClientTransport newTransport)
public ClientConnectionSettings mapHttp2Settings(scala.Function1<Http2ClientSettings,Http2ClientSettings> f)
public ClientConnectionSettings withLocalAddressOverride(scala.Option<java.net.InetSocketAddress> overrideLocalAddressOption)
Some(address)
, otherwise
return this instance unchanged.overrideLocalAddressOption
- (undocumented)