@Beta public class AltoSocketConfig extends Object
AltoConfig
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_RECEIVE_BUFFER_SIZE_KB |
static int |
DEFAULT_SEND_BUFFER_SIZE_KB |
Constructor and Description |
---|
AltoSocketConfig() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getPortRange()
Gets the possible port range for Alto sockets to bind.
|
int |
getReceiveBufferSizeKB()
Gets the receive-buffer size of the Alto sockets in kilobytes.
|
int |
getSendBufferSizeKB()
Gets the send-buffer size of the Alto sockets in kilobytes.
|
int |
hashCode() |
AltoSocketConfig |
setPortRange(String portRange)
Sets the possible port range for Alto sockets to bind.
|
AltoSocketConfig |
setReceiveBufferSizeKB(int receiveBufferSizeKB)
Sets the receive-buffer size of the Alto sockets in kilobytes.
|
AltoSocketConfig |
setSendBufferSizeKB(int sendBufferSizeKB)
Sets the send-buffer size of the Alto 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 AltoSocketConfig 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 AltoSocketConfig setReceiveBufferSizeKB(int receiveBufferSizeKB)
receiveBufferSizeKB
- the receive-buffer size of the Alto sockets in kilobytesIllegalArgumentException
- if receiveBufferSizeKB isn't positiveSocketOptions.SO_RCVBUF
public int getSendBufferSizeKB()
SocketOptions.SO_SNDBUF
@Nonnull public AltoSocketConfig setSendBufferSizeKB(int sendBufferSizeKB)
sendBufferSizeKB
- the send-buffer size of the Alto sockets in kilobytesIllegalArgumentException
- if sendBufferSizeKB isn't positiveSocketOptions.SO_SNDBUF
Copyright © 2023 Hazelcast, Inc.. All rights reserved.