public class TimeoutExecutor
extends java.lang.Object
ExecutorService
implementation of implementing timeouts for
SocketIF
s.Modifier and Type | Field and Description |
---|---|
static long |
TIMEOUT_MS
Deprecated.
Reasonable timeout value 30 seconds (?) for relevant discussions on
timeout length see: https://bugzilla.mozilla.org/show_bug.cgi?id=365898
http://support.f5.com/kb/en-us/solutions/public/13000/800/sol13863.html
|
Constructor and Description |
---|
TimeoutExecutor()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Future<TimeoutRunnable> |
scheduleTimeout(TimeoutRunnable worker)
Deprecated.
Schedule a timeout that expires in the future.
|
void |
shutdown()
Deprecated.
Shuts the underlying
ExecutorService down. |
public static final long TIMEOUT_MS
public java.util.concurrent.Future<TimeoutRunnable> scheduleTimeout(TimeoutRunnable worker)
worker
- the worker to submitpublic void shutdown()
ExecutorService
down.