public final class TcpClientConfig
extends java.lang.Object
| Constructor and Description |
|---|
TcpClientConfig()
New instance.
|
TcpClientConfig(TcpClientConfig from)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ReadOnlyTcpClientConfig |
asReadOnly(java.util.List<java.lang.String> supportedAlpnProtocols)
Returns an immutable view of this config, any changes to this config will not alter the returned view.
|
void |
enableWireLogging(java.lang.String loggerName)
Enable wire-logging for all connections.
|
void |
flushStrategy(FlushStrategy flushStrategy)
Sets
FlushStrategy to use for all connections. |
void |
secure(SecurityConfig securityConfig)
Add security related config.
|
<T> void |
socketOption(java.net.SocketOption<T> option,
T value)
Add a
SocketOption that is applied. |
public TcpClientConfig()
public TcpClientConfig(TcpClientConfig from)
from - the source TcpClientConfig to copy frompublic ReadOnlyTcpClientConfig asReadOnly(java.util.List<java.lang.String> supportedAlpnProtocols)
supportedAlpnProtocols - a list of supported protocols for ALPN configurationpublic final <T> void socketOption(java.net.SocketOption<T> option,
T value)
SocketOption that is applied.T - the type of the valueoption - the option to applyvalue - the valuejava.lang.IllegalArgumentException - if the SocketOption is not supportedStandardSocketOptions,
ServiceTalkSocketOptionspublic final void flushStrategy(FlushStrategy flushStrategy)
FlushStrategy to use for all connections.flushStrategy - FlushStrategy to use for all connectionspublic final void enableWireLogging(java.lang.String loggerName)
loggerName - The name of the logger to log wire eventspublic final void secure(SecurityConfig securityConfig)
securityConfig - the ReadOnlyServerSecurityConfig to use