Class TpcSocketConfig

java.lang.Object
com.hazelcast.config.tpc.TpcSocketConfig

@Beta public class TpcSocketConfig extends Object
Socket configuration for TPC. In TPC, each eventloop has its own sockets.
Since:
5.3
See Also:
  • Field Details

  • Constructor Details

    • TpcSocketConfig

      public TpcSocketConfig()
  • Method Details

    • getPortRange

      @Nonnull public String getPortRange()
      Gets the possible port range for TPC sockets to bind. Can't return null.
      Returns:
      the port range string
    • setPortRange

      @Nonnull public TpcSocketConfig setPortRange(@Nonnull String portRange)
      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 expression
      NullPointerException - 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

      @Nonnull public TpcSocketConfig setReceiveBufferSizeKB(int receiveBufferSizeKB)
      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

      @Nonnull public TpcSocketConfig setSendBufferSizeKB(int sendBufferSizeKB)
      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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object