Class TimeoutOutputStream

java.lang.Object
com.sun.mail.util.TimeoutOutputStream

public static class TimeoutOutputStream extends Object
An OutputStream that wraps the Socket's OutputStream and uses the ScheduledExecutorService to schedule a task to close the socket (aborting the write) if the timeout expires.
See Also: