net.java.dev.moskito.core.timing.timer
Interface ITimerService

All Known Implementing Classes:
TimerServiceImpl

public interface ITimerService

This interface describes the timer service. The timer sleeps for a given amount of milliseconds, called 'tick', after each tick it checks whether there are consumer which have to be notified. Currently one tick is 100 ms.

Author:
lrosenberg Created on 21.06.2004

Method Summary
 void addConsumer(ITimerConsumer object, int amount)
          Adds the specified consumer to the timer queue for the specified amount of ticks.
 void removeConsumer(ITimerConsumer object)
          Removes the specified consumer from ALL queues.
 void removeConsumer(ITimerConsumer object, int amount)
          Removes the specified consumer from the timer queue for the specified amount of ticks.
 

Method Detail

addConsumer

void addConsumer(ITimerConsumer object,
                 int amount)
Adds the specified consumer to the timer queue for the specified amount of ticks.


removeConsumer

void removeConsumer(ITimerConsumer object,
                    int amount)
Removes the specified consumer from the timer queue for the specified amount of ticks.


removeConsumer

void removeConsumer(ITimerConsumer object)
Removes the specified consumer from ALL queues.



Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework