com.monica.javacom.interfaces
Interface MJCTimer

All Known Implementing Classes:
MJCThreadTimer

public interface MJCTimer

Provides functionality for implementing timers. Started timers will supply event ni=otifications in regular intervals until they are killed.


Method Summary
 boolean killTimer(int timerID)
          Kills the timer with the specified timerID.
 boolean setTimer(int timerID, int interval)
          Starts the timer.
 

Method Detail

setTimer

public boolean setTimer(int timerID,
                        int interval)
Starts the timer. The timer will call the callback method each passed interval milliseconds supplying the provided timerID as well until the timer is explicitly killed with the killTimer method.
Parameters:
int - timerID: the Id that will be supplied to the callback method
Returns:
boolean: wether the timer could be started or not

killTimer

public boolean killTimer(int timerID)
Kills the timer with the specified timerID.
Parameters:
int - timerID: the timerID of the to be killed timer
Returns:
boolean: wether the timer could be killed or not