| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_RECEIVE_BUFFER_SIZE_KB |
static int |
DEFAULT_SEND_BUFFER_SIZE_KB |
| Constructor and Description |
|---|
TpcSocketConfig() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getPortRange()
Gets the possible port range for TPC sockets to bind.
|
int |
getReceiveBufferSizeKB()
Gets the receive-buffer size of the TPC sockets in kilobytes.
|
int |
getSendBufferSizeKB()
Gets the send-buffer size of the TPC sockets in kilobytes.
|
int |
hashCode() |
TpcSocketConfig |
setPortRange(String portRange)
Sets the possible port range for TPC sockets to bind.
|
TpcSocketConfig |
setReceiveBufferSizeKB(int receiveBufferSizeKB)
Sets the receive-buffer size of the TPC sockets in kilobytes.
|
TpcSocketConfig |
setSendBufferSizeKB(int sendBufferSizeKB)
Sets the send-buffer size of the TPC sockets in kilobytes.
|
String |
toString() |
public static final int DEFAULT_RECEIVE_BUFFER_SIZE_KB
SocketOptions.SO_RCVBUF,
Constant Field Valuespublic static final int DEFAULT_SEND_BUFFER_SIZE_KB
SocketOptions.SO_SNDBUF,
Constant Field Values@Nonnull public String getPortRange()
@Nonnull public TpcSocketConfig setPortRange(@Nonnull String portRange)
portRange - the port range to setIllegalArgumentException - if portRange doesn't match \d{1,5}-\d{1,5} regular expressionNullPointerException - if portRange is nullpublic int getReceiveBufferSizeKB()
SocketOptions.SO_RCVBUF@Nonnull public TpcSocketConfig setReceiveBufferSizeKB(int receiveBufferSizeKB)
receiveBufferSizeKB - the receive-buffer size of the TPC sockets in kilobytesIllegalArgumentException - if receiveBufferSizeKB isn't positiveSocketOptions.SO_RCVBUFpublic int getSendBufferSizeKB()
SocketOptions.SO_SNDBUF@Nonnull public TpcSocketConfig setSendBufferSizeKB(int sendBufferSizeKB)
sendBufferSizeKB - the send-buffer size of the TPC sockets in kilobytesIllegalArgumentException - if sendBufferSizeKB isn't positiveSocketOptions.SO_SNDBUFCopyright © 2023 Hazelcast, Inc.. All rights reserved.