Interface TcpSocketPropertiesConfigurer


@Experimental @NoImplement @MinMuleVersion("4.10.0") public interface TcpSocketPropertiesConfigurer
Allows configuring the TCP properties
Since:
0.12.0
  • Method Details

    • sendBufferSize

      TcpSocketPropertiesConfigurer sendBufferSize(Integer sendBufferSize)
      Defines the size of the buffer to use when sending data.
      Parameters:
      sendBufferSize - size of the buffer (in bytes).
      Returns:
      this configurer
    • receiveBufferSize

      TcpSocketPropertiesConfigurer receiveBufferSize(Integer receiveBufferSize)
      Defines the size of the buffer to use when receiving data.
      Parameters:
      receiveBufferSize - size of the buffer (in bytes).
      Returns:
      this configurer
    • clientTimeout

      TcpSocketPropertiesConfigurer clientTimeout(Integer clientTimeout)
      Defines the SO_TIMEOUT value for client sockets.
      Parameters:
      clientTimeout - the timeout (in milliseconds).
      Returns:
      this configurer
    • sendTcpNoDelay

      TcpSocketPropertiesConfigurer sendTcpNoDelay(Boolean sendTcpNoDelay)
      Defines whether data should be collected or not before sending.
      Parameters:
      sendTcpNoDelay - whether to send everything or collect data
      Returns:
      this configurer
    • linger

      Defines the SO_LINGER value, related to how long the socket will take to close.
      Parameters:
      linger - timeout (in milliseconds)
      Returns:
      this configurer
    • keepAlive

      TcpSocketPropertiesConfigurer keepAlive(Boolean keepAlive)
      Defines the SO_KEEPALIVE behavior for open sockets.
      Parameters:
      keepAlive - the value
      Returns:
      this configurer
    • connectionTimeout

      TcpSocketPropertiesConfigurer connectionTimeout(Integer connectionTimeout)
      Defines how long to wait for the outbound connection to be created.
      Parameters:
      connectionTimeout - timeout (in milliseconds)
      Returns:
      this configurer