public class TimeoutRunnable
extends java.lang.Object
implements java.lang.Runnable
Runnable
implementation of a timeout to be used with a
ExecutorService
. Timeouts are associated with a
SocketIF
and a TimeoutListener
. When a timeout is expired, it
notifies the listener of the expiration, at which time the listener should
act on the timeout (e.g. closing the socket, performing an SSL/TLS
re-handshake and so on).TimeoutExecutor
Constructor and Description |
---|
TimeoutRunnable(TimeoutListener listener,
SocketIF socket,
long timeout)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
run()
Deprecated.
|
public TimeoutRunnable(TimeoutListener listener, SocketIF socket, long timeout)
listener
- socket
- timeout
-