Class Overview
TimeoutService (beta). Here you can register a timeout.
Implemented having large scale programs in mind: if you open many concurrent SSH connections
that rely on timeouts, then there will be only one timeout thread. Once all timeouts
have expired/are cancelled, the thread will (sooner or later) exit.
Only after new timeouts arrive a new thread (singleton) will be instantiated.
Summary
| Nested Classes |
|
class |
TimeoutService.TimeoutToken |
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
Fields
private
static
final
Logger
log
private
static
Thread
timeoutThread
Public Constructors
Public Methods
It is assumed that the passed handler will not execute for a long time.
Returns
- a TimeoutToken that can be used to cancel the timeout.