public interface TCPSupport<T> extends NetworkSupport<T>
| Modifier and Type | Method and Description |
|---|---|
int |
getSoLinger() |
boolean |
isTCPKeepAlive() |
boolean |
isTCPNoDelay() |
boolean |
isUsePooledBuffers() |
T |
setSoLinger(int linger)
Set the TCP soLinger setting for connections created by this instance to
linger. |
T |
setTCPKeepAlive(boolean keepAlive)
Set the TCP keepAlive setting for connections created by this instance to
keepAlive. |
T |
setTCPNoDelay(boolean tcpNoDelay)
If
tcpNoDelay is set to true then Nagle's algorithm
will turned off for the TCP connections created by this instance. |
T |
setUsePooledBuffers(boolean pooledBuffers)
Set if vertx should use pooled buffers for performance reasons.
|
getReceiveBufferSize, getSendBufferSize, getTrafficClass, isReuseAddress, setReceiveBufferSize, setReuseAddress, setSendBufferSize, setTrafficClassT setTCPNoDelay(boolean tcpNoDelay)
tcpNoDelay is set to true then Nagle's algorithm
will turned off for the TCP connections created by this instance.T setTCPKeepAlive(boolean keepAlive)
keepAlive.T setSoLinger(int linger)
linger.
Using a negative value will disable soLinger.T setUsePooledBuffers(boolean pooledBuffers)
boolean isTCPNoDelay()
boolean isTCPKeepAlive()
int getSoLinger()
boolean isUsePooledBuffers()
true if pooled buffers are used