public class SocketTimeout extends SimpleTimer2.TimedEvent
_state, DEFAULT_FUZZ
Constructor and Description |
---|
SocketTimeout(long delay) |
SocketTimeout(Socket socket,
long delay) |
Modifier and Type | Method and 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() |
forceReschedule, reschedule, reschedule, run, schedule, setFuzz
public SocketTimeout(long delay)
public SocketTimeout(Socket socket, long delay)
public void timeReached()
SimpleTimer2.TimedEvent
timeReached
in class SimpleTimer2.TimedEvent
public boolean cancel()
cancel
in class SimpleTimer2.TimedEvent
public void setSocket(Socket s)
public void resetTimer()
public void setInactivityTimeout(long timeout)
public void setTotalTimeoutPeriod(long timeoutPeriod)
public void setTimeoutCommand(Runnable job)