|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.TimerTask
peer2me.network.NetworkTimer
public class NetworkTimer
This class is a timer ticking at the given rate,
starting after a given delay
.
The purpose of this class is to aid the ping-functionality.
Constructor Summary | |
---|---|
NetworkTimer(Network network,
long rate)
Creating a new timer with a reference to Network . |
Method Summary | |
---|---|
void |
run()
The method required from TimerTask which
it called at det given rate. |
Methods inherited from class java.util.TimerTask |
---|
cancel, scheduledExecutionTime |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkTimer(Network network, long rate)
Network
.
It also starts the timer with the given rate.
network
- a reference to Networkrate
- the "ping-rate"Method Detail |
---|
public void run()
TimerTask
which
it called at det given rate.
Calls on Network.ping()
.
run
in interface java.lang.Runnable
run
in class java.util.TimerTask
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |