// ************************************************************************ // $Id: PeriodicTimerServer.java 561 2005-07-11 20:09:17Z mdeters $ // ************************************************************************ // // jRate // // Copyright (C) 2001-2005 by Angelo Corsaro. // // All Rights Reserved. // // Permission to use, copy, modify, and distribute this software and // its documentation for any purpose is hereby granted without fee, // provided that the above copyright notice appear in all copies and // that both that copyright notice and this permission notice appear // in supporting documentation. I don't make any representations // about the suitability of this software for any purpose. It is // provided "as is" without express or implied warranty. // // // ************************************************************************* // // ************************************************************************* package javax.realtime; /** * This interface has to be implemented by periodic timer server. * Timer server provide a way of implementing Timers in * many different way. * * @author Angelo Corsaro * @version 1.0 */ interface PeriodicTimerServer { /** * Registers the timer with the server. The firing of the timer * will be started once the timer has beend scheduled (see * schedule() method). * * @param timer a PeriodicTimer */ void registerTimer(PeriodicTimer timer); /** * Unregisters a timer. Once a timer is unregistered it won't be * any longer fired. * * @param timer a PeriodicTimer */ void unregisterTimer(PeriodicTimer timer); /** * Schedules a timer of firing. * * @param timer a PeriodicTimer */ void schedule(PeriodicTimer timer); /** * Deschedules a timer. The timer will still remain registered but * it won't be fired up to when it won't be scheduled again. * * @param timer a PeriodicTimer */ void deschedule(PeriodicTimer timer); }