Class semper.SemperServer.SSTimer
All Packages Class Hierarchy This Package Previous Next Index
Class semper.SemperServer.SSTimer
java.lang.Object
|
+----semper.SemperServer.SSTimer
- public class SSTimer
- extends Object
- implements Runnable
This class defines methods for the implementation of
an external interruptable timer.
- Author:
- Petros Pantis, Kostas Tzelepis
- See Also:
- Run
-
monitorProc
-
-
SSTimer(SSMonitor)
- Constructor for the SSTimer object
-
run()
- This method calls implements the timer loop
-
starting()
- Starts the timer thread
-
WaitTimer(long)
- Waits until an internal or external notification message will
occur
-
WakeUp()
- Called from the currently running thread in order
to interrupt the counting
monitorProc
public SSMonitor monitorProc
SSTimer
public SSTimer(SSMonitor mProc)
- Constructor for the SSTimer object
- Parameters:
- mProc - the reference to the Monitor object
- See Also:
- start
WakeUp
public synchronized boolean WakeUp()
- Called from the currently running thread in order
to interrupt the counting
- Parameters:
- flag - the execution state for the current thread proccess
- obj - the reference to a Socket object or null
- See Also:
- run
WaitTimer
public synchronized void WaitTimer(long time)
- Waits until an internal or external notification message will
occur
- Parameters:
- time - the timeout
starting
public void starting()
- Starts the timer thread
run
public void run()
- This method calls implements the timer loop
All Packages Class Hierarchy This Package Previous Next Index