Class TcpOption<T>

java.lang.Object
io.vertx.core.net.TcpOption<T>

public class TcpOption<T> extends Object
Generic TCP configuration option.
  • Field Details

    • NODELAY

      public static final TcpOption<Boolean> NODELAY
      The TCP_NODELAY option - only with Linux native transport.
    • QUICKACK

      public static final TcpOption<Boolean> QUICKACK
      The TCP_QUICKACK option - only with Linux native transport.
    • CORK

      public static final TcpOption<Boolean> CORK
      The TCP_CORK option - only with Linux native transport.
    • USER_TIMEOUT

      public static final TcpOption<Integer> USER_TIMEOUT
      The TCP_USER_TIMEOUT option - only with Linux native transport.
    • FASTOPEN_CONNECT

      public static final TcpOption<Boolean> FASTOPEN_CONNECT
      The TCP_FASTOPEN_CONNECT option - only with Linux native transport.
    • FASTOPEN

      public static final TcpOption<Integer> FASTOPEN
      The TCP_FASTOPEN option - only with Linux native transport.
    • KEEPCNT

      public static final TcpOption<Integer> KEEPCNT
      The TCP_KEEPCNT option - only with Linux native transport.

      The maximum number of keepalive probes TCP should send before dropping the connection.

      A value of 0 means: Do not set this socket option, which will result in an OS-specific default value.

    • KEEPIDLE

      public static final TcpOption<Integer> KEEPIDLE
      The TCP_KEEPIDLE option - only with Linux native transport.

      The time (in seconds) the connection needs to remain idle before TCP starts sending keepalive probes, if enabled.

      A value of 0 means: Do not set this socket option, which will result in an OS-specific default value.

    • KEEPINTVL

      public static final TcpOption<Integer> KEEPINTVL
      The TCP_KEEPINTVL option - only with Linux native transport.

      The time (in seconds) between individual keepalive probes.

      A value of 0 means: Do not set this socket option, which will result in an OS-specific default value.

  • Method Details

    • validate

      protected void validate(T value)