Package com.hazelcast.config.tpc
Class TpcSocketConfig
java.lang.Object
com.hazelcast.config.tpc.TpcSocketConfig
Socket configuration for TPC. In TPC, each eventloop has its own
 sockets.
- Since:
 - 5.3
 - See Also:
 
- 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final int - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanGets the possible port range for TPC sockets to bind.intGets the receive-buffer size of the TPC sockets in kilobytes.intGets the send-buffer size of the TPC sockets in kilobytes.inthashCode()setPortRange(String portRange) Sets the possible port range for TPC sockets to bind.setReceiveBufferSizeKB(int receiveBufferSizeKB) Sets the receive-buffer size of the TPC sockets in kilobytes.setSendBufferSizeKB(int sendBufferSizeKB) Sets the send-buffer size of the TPC sockets in kilobytes.toString() 
- 
Field Details
- 
DEFAULT_RECEIVE_BUFFER_SIZE_KB
public static final int DEFAULT_RECEIVE_BUFFER_SIZE_KB- See Also:
 
 - 
DEFAULT_SEND_BUFFER_SIZE_KB
public static final int DEFAULT_SEND_BUFFER_SIZE_KB- See Also:
 
 
 - 
 - 
Constructor Details
- 
TpcSocketConfig
public TpcSocketConfig() 
 - 
 - 
Method Details
- 
getPortRange
Gets the possible port range for TPC sockets to bind. Can't return null.- Returns:
 - the port range string
 
 - 
setPortRange
Sets the possible port range for TPC sockets to bind. Can't return null.- Parameters:
 portRange- the port range to set- Returns:
 - this TPC socket config
 - Throws:
 IllegalArgumentException- if portRange doesn't match\d{1,5}-\d{1,5}regular expressionNullPointerException- if portRange is null
 - 
getReceiveBufferSizeKB
public int getReceiveBufferSizeKB()Gets the receive-buffer size of the TPC sockets in kilobytes.- Returns:
 - the receive-buffer size of the TPC sockets in kilobytes
 - See Also:
 
 - 
setReceiveBufferSizeKB
Sets the receive-buffer size of the TPC sockets in kilobytes. Can't return null.- Parameters:
 receiveBufferSizeKB- the receive-buffer size of the TPC sockets in kilobytes- Returns:
 - this TPC socket config
 - Throws:
 IllegalArgumentException- if receiveBufferSizeKB isn't positive- See Also:
 
 - 
getSendBufferSizeKB
public int getSendBufferSizeKB()Gets the send-buffer size of the TPC sockets in kilobytes.- Returns:
 - the send-buffer size of the TPC sockets in kilobytes
 - See Also:
 
 - 
setSendBufferSizeKB
Sets the send-buffer size of the TPC sockets in kilobytes. Can't return null.- Parameters:
 sendBufferSizeKB- the send-buffer size of the TPC sockets in kilobytes- Returns:
 - this TPC socket config
 - Throws:
 IllegalArgumentException- if sendBufferSizeKB isn't positive- See Also:
 
 - 
equals
 - 
hashCode
public int hashCode() - 
toString
 
 -