Class EndpointConfig
java.lang.Object
io.vertx.core.net.EndpointConfig
- Direct Known Subclasses:
QuicEndpointConfig, TcpEndpointConfig
Configuration of an endpoint.
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TransportConfigsetIdleTimeout(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.setWriteIdleTimeout(Duration idleTimeout) Set the stream write idle timeout, zero ornullmeans don't time out.
-
Constructor Details
-
EndpointConfig
-
-
Method Details
-
getTransportConfig
- Returns:
- the endpoint transport config
-
setIdleTimeout
Set 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.- Parameters:
idleTimeout- the idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
getIdleTimeout
- Returns:
- the idle timeout applied to each stream
-
setReadIdleTimeout
Set 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.- Parameters:
idleTimeout- the read idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
getReadIdleTimeout
- Returns:
- the read idle timeout applied to each stream
-
setWriteIdleTimeout
Set 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.- Parameters:
idleTimeout- the write idle timeout- Returns:
- a reference to this, so the API can be used fluently
-
getWriteIdleTimeout
- Returns:
- the write idle timeout applied to each stream
-
getMetricsName
- Returns:
- the metrics name identifying the reported metrics.
-
setMetricsName
Set the metrics name identifying the reported metrics, useful for grouping metrics with the same name.- Parameters:
metricsName- the metrics name- Returns:
- a reference to this, so the API can be used fluently
-
getLogConfig
- Returns:
- the log config
-
setLogConfig
Configure the log config: Netty's stream pipeline is configured for logging on Netty's logger.- Parameters:
config- the log config- Returns:
- a reference to this, so the API can be used fluently
-