Class WriteTimeoutSocket

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public class WriteTimeoutSocket
    extends Socket
    A special Socket that uses a ScheduledExecutorService to implement timeouts for writes. The write timeout is specified (in milliseconds) when the WriteTimeoutSocket is created.