Runnablepublic class SocketTimeout extends SimpleTimer2.TimedEvent
_state, DEFAULT_FUZZ| Constructor | Description |
|---|---|
SocketTimeout(long delay) |
|
SocketTimeout(Socket socket,
long delay) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
cancel() |
Change in return value from void to boolean in
0.9.3 accidentally broke Syndie, sorry.
|
void |
resetTimer() |
|
void |
setInactivityTimeout(long timeout) |
|
void |
setSocket(Socket s) |
|
void |
setTimeoutCommand(Runnable job) |
|
void |
setTotalTimeoutPeriod(long timeoutPeriod) |
|
void |
timeReached() |
Simple interface for events to be queued up and notified on expiration
the time requested has been reached (this call should NOT block,
otherwise the whole SimpleTimer gets backed up)
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforceReschedule, reschedule, reschedule, run, schedule, setFuzzpublic SocketTimeout(long delay)
public SocketTimeout(Socket socket, long delay)
public void timeReached()
SimpleTimer2.TimedEventtimeReached in class SimpleTimer2.TimedEventpublic boolean cancel()
cancel in class SimpleTimer2.TimedEventpublic void setSocket(Socket s)
public void resetTimer()
public void setInactivityTimeout(long timeout)
public void setTotalTimeoutPeriod(long timeoutPeriod)
public void setTimeoutCommand(Runnable job)