public interface TCPSupport<T>
| Modifier and Type | Method and Description |
|---|---|
int |
getReceiveBufferSize() |
int |
getSendBufferSize() |
int |
getSoLinger() |
int |
getTrafficClass() |
boolean |
isReuseAddress() |
boolean |
isTCPKeepAlive() |
boolean |
isTCPNoDelay() |
boolean |
isUsePooledBuffers() |
T |
setReceiveBufferSize(int size)
Set the TCP receive buffer size for connections created by this instance to
size in bytes. |
T |
setReuseAddress(boolean reuse)
Set the TCP reuseAddress setting for connections created by this instance to
reuse. |
T |
setSendBufferSize(int size)
Set the TCP send buffer size for connections created by this instance to
size in bytes. |
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 |
setTrafficClass(int trafficClass)
Set the TCP trafficClass setting for connections created by this instance to
trafficClass. |
T |
setUsePooledBuffers(boolean pooledBuffers)
Set if vertx should use pooled buffers for performance reasons.
|
T setTCPNoDelay(boolean tcpNoDelay)
tcpNoDelay is set to true then Nagle's algorithm
will turned off for the TCP connections created by this instance.T setSendBufferSize(int size)
size in bytes.T setReceiveBufferSize(int size)
size in bytes.T setTCPKeepAlive(boolean keepAlive)
keepAlive.T setReuseAddress(boolean reuse)
reuse.T setSoLinger(int linger)
linger.
Using a negative value will disable soLinger.T setTrafficClass(int trafficClass)
trafficClass.T setUsePooledBuffers(boolean pooledBuffers)
boolean isTCPNoDelay()
int getSendBufferSize()
int getReceiveBufferSize()
boolean isTCPKeepAlive()
boolean isReuseAddress()
int getSoLinger()
int getTrafficClass()
boolean isUsePooledBuffers()
true if pooled buffers are used