public abstract class AbstractSocketProperties extends Object implements SocketProperties
| Modifier and Type | Field and Description |
|---|---|
protected Integer |
clientTimeout
This sets the SO_TIMEOUT value on sockets.
|
protected String |
name
The name of this config object, so that it can be referenced by config elements.
|
protected Integer |
receiveBufferSize
The size of the buffer (in bytes) used when receiving data, set on the socket itself.
|
protected Integer |
sendBufferSize
The size of the buffer (in bytes) used when sending data, set on the socket itself.
|
protected static String |
TIMEOUT_CONFIGURATION |
GROUP_NAME| Constructor and Description |
|---|
AbstractSocketProperties() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getClientTimeout()
This sets the SO_TIMEOUT value on client sockets.
|
String |
getName() |
Integer |
getReceiveBufferSize()
The size of the buffer (in bytes) used when receiving data, set on the socket itself.
|
boolean |
getReuseAddress()
Enabling SO_REUSEADDR prior to binding the socket using bind(SocketAddress) allows the socket to be bound even though a
previous connection is in a clientSocketTimeout state.
|
Integer |
getSendBufferSize()
The size of the buffer (in bytes) used when sending data, set on the socket itself.
|
void |
setName(String name) |
protected static final String TIMEOUT_CONFIGURATION
@ConfigName protected String name
@Parameter @Optional @Placement(tab="Buffer Configuration") protected Integer sendBufferSize
@Parameter @Optional @Placement(tab="Buffer Configuration") protected Integer receiveBufferSize
@Parameter @Optional @Summary(value="Time, in milliseconds, that the socket will wait in a blocking operation before failing") @Placement(tab="Timeout Configuration") protected Integer clientTimeout
A value of 0 (the default) means waiting indefinitely.
public String getName()
public void setName(String name)
public Integer getSendBufferSize()
getSendBufferSize in interface SocketPropertiespublic Integer getReceiveBufferSize()
getReceiveBufferSize in interface SocketPropertiespublic Integer getClientTimeout()
A value of 0 (the socket's default) causes the read to wait indefinitely (if no data arrives).
getClientTimeout in interface SocketPropertiespublic boolean getReuseAddress()
For UDP sockets it may be necessary to bind more than one socket to the same socket address. This is typically for the purpose of receiving multicast packets
getReuseAddress in interface SocketPropertiesCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.