Class TcpEndpointConfig
java.lang.Object
io.vertx.core.net.EndpointConfig
io.vertx.core.net.TcpEndpointConfig
- Direct Known Subclasses:
TcpClientConfig, TcpServerConfig
Should this be
TcpConfig instead ?- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisSsl()setIdleTimeout(Duration idleTimeout) Set the stream idle timeout, zero ornullmeans don't time out.setLogConfig(LogConfig config) Configure the log config: Netty's stream pipeline is configured for logging on Netty's logger.setMetricsName(String metricsName) Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.setReadIdleTimeout(Duration idleTimeout) Set the stream read idle timeout, zero ornullmeans or null means don't time out.setSsl(boolean ssl) Set whether SSL/TLS is enabledsetTransportConfig(TcpConfig transportConfig) Set the client TCP transport config.setWriteIdleTimeout(Duration idleTimeout) Set the stream write idle timeout, zero ornullmeans don't time out.Methods inherited from class EndpointConfig
getIdleTimeout, getLogConfig, getMetricsName, getReadIdleTimeout, getWriteIdleTimeout
-
Constructor Details
-
TcpEndpointConfig
public TcpEndpointConfig() -
TcpEndpointConfig
-
TcpEndpointConfig
-
-
Method Details
-
getTransportConfig
- Specified by:
getTransportConfigin classEndpointConfig- Returns:
- the client TCP transport options
-
setTransportConfig
Set the client TCP transport config.- Parameters:
transportConfig- the transport config- Returns:
- a reference to this, so the API can be used fluently
-
isSsl
public boolean isSsl()- Returns:
- is SSL/TLS enabled?
-
setSsl
Set whether SSL/TLS is enabled- Parameters:
ssl- true if enabled- Returns:
- a reference to this, so the API can be used fluently
-
setIdleTimeout
Description copied from class:EndpointConfigSet the stream idle timeout, zero ornullmeans don't time out. This determines if a stream will timeout and be closed if no data is received nor sent within the timeout.- Overrides:
setIdleTimeoutin classEndpointConfig- Parameters:
idleTimeout- the idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
setReadIdleTimeout
Description copied from class:EndpointConfigSet the stream read idle timeout, zero or
nullmeans or null means don't time out. This determines if a stream will timeout and be closed if no data is received within the timeout.- Overrides:
setReadIdleTimeoutin classEndpointConfig- Parameters:
idleTimeout- the read idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
setWriteIdleTimeout
Description copied from class:EndpointConfigSet the stream write idle timeout, zero or
nullmeans don't time out. This determines if a stream will timeout and be closed if no data is sent within the timeout.- Overrides:
setWriteIdleTimeoutin classEndpointConfig- Parameters:
idleTimeout- the write idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
setMetricsName
Description copied from class:EndpointConfigSet the metrics name identifying the reported metrics, useful for grouping metrics with the same name.- Overrides:
setMetricsNamein classEndpointConfig- Parameters:
metricsName- the metrics name- Returns:
- a reference to this, so the API can be used fluently
-
setLogConfig
Description copied from class:EndpointConfigConfigure the log config: Netty's stream pipeline is configured for logging on Netty's logger.- Overrides:
setLogConfigin classEndpointConfig- Parameters:
config- the log config- Returns:
- a reference to this, so the API can be used fluently
-