Class SocketOptions.KeepAliveOptions

  • Enclosing class:
    SocketOptions

    public static class SocketOptions.KeepAliveOptions
    extends Object
    Extended Keep-Alive options (idle, interval, count). Extended options should not be used in code intended to be portable as options are applied only when using NIO sockets with Java 11 or newer epoll sockets, or io_uring sockets. Not applicable for kqueue in general or NIO sockets using Java 10 or earlier.

    The time granularity of getIdle() and getInterval() is seconds.

    Since:
    6.1