|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.monkeycoder.monkeynetwork.ConnectionTimeOutTimer
public class ConnectionTimeOutTimer
This class acts as a pollable countdown timer.
| Constructor Summary | |
|---|---|
ConnectionTimeOutTimer()
Creates a new ConnectionTimeOutTimer. |
|
ConnectionTimeOutTimer(boolean autoStart)
Creates a new ConnectionTimeOutTimer. |
|
ConnectionTimeOutTimer(boolean autoStart,
long inTimeoutTime)
Creates a new ConnectionTimeOutTimer. |
|
| Method Summary | |
|---|---|
boolean |
isTimedOut()
Checks whether or not this timer has expired. |
void |
setTimeoutTime(long inTimeoutTime)
Sets how long until this timer reports that it has timed out. |
void |
start()
Starts the timer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConnectionTimeOutTimer()
public ConnectionTimeOutTimer(boolean autoStart)
autoStart - Whether or not to start this timer immediately after its creation.
public ConnectionTimeOutTimer(boolean autoStart,
long inTimeoutTime)
autoStart - Whether or not to start this timer immediately after its creation.inTimeoutTime - How long until this timer reports that it has timed out in milliseconds.| Method Detail |
|---|
public void start()
public void setTimeoutTime(long inTimeoutTime)
inTimeoutTime - How long until this timer reports that it has timed out in miliseconds.public boolean isTimedOut()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||