public abstract class AbstractTcpSocketProperties extends AbstractSocketProperties implements TcpSocketProperties
Socket| Modifier and Type | Field and Description |
|---|---|
protected boolean |
failOnUnresolvedHost
Whether the socket should fail during its creation if the host set on the endpoint cannot be resolved.
|
protected boolean |
keepAlive
Enables SO_KEEPALIVE behavior on open sockets.
|
protected Integer |
linger
This sets the SO_LINGER value.
|
protected boolean |
sendTcpNoDelay
If set, transmitted data is not collected together for greater efficiency but sent immediately.
|
clientTimeout, name, receiveBufferSize, sendBufferSize, TIMEOUT_CONFIGURATIONGROUP_NAME| Constructor and Description |
|---|
AbstractTcpSocketProperties() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getFailOnUnresolvedHost()
Will fail during sending if the remote host address cannot be resolved.
|
Boolean |
getKeepAlive()
Enables SO_KEEPALIVE behavior on open sockets.
|
Integer |
getLinger()
This sets the SO_LINGER value.
|
boolean |
getSendTcpNoDelay()
If set, transmitted data is not collected together for greater efficiency but sent immediately.
|
getClientTimeout, getName, getReceiveBufferSize, getReuseAddress, getSendBufferSize, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetClientTimeout, getReceiveBufferSize, getReuseAddress, getSendBufferSize@Parameter @Optional(defaultValue="true") @Summary(value="Indicates whether the transmitted data should not be collected together for greater efficiency, and sent immediately") @DisplayName(value="Send TCP With No Delay") protected boolean sendTcpNoDelay
Defaults to true even though Socket default is false because optimizing to reduce amount of network traffic
over latency is hardly ever a concern today.
@Parameter @Optional @Summary(value="This indicates for how long, in milliseconds, the socket will take to close so any remaining data istransmitted correctly") protected Integer linger
@Parameter @Optional(defaultValue="false") @Summary(value="Indicates whether the open socket connections unused for a long period and with an unavailable connection should be closed") protected boolean keepAlive
This is a property on the socket itself and is used by a server socket to control whether connections to the server are kept alive before they are recycled.
@Parameter @Optional(defaultValue="true") @Summary(value="Whether the socket should fail during its creation if the host set on the endpoint cannot be resolved") protected boolean failOnUnresolvedHost
public Integer getLinger()
A value of null (default) disables linger on the socket.
getLinger in interface TcpSocketPropertiespublic Boolean getKeepAlive()
This is a property on the socket itself and is used by a server socket to control whether connections to the server are kept alive before they are recycled.
getKeepAlive in interface TcpSocketPropertiespublic boolean getSendTcpNoDelay()
Defaults to true even though Socket default is false because optimizing to reduce amount of network traffic over
latency is hardly ever a concern today.
getSendTcpNoDelay in interface TcpSocketPropertiespublic boolean getFailOnUnresolvedHost()
getFailOnUnresolvedHost in interface TcpSocketPropertiesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.