5
* Timer.h,v 1.5 2003/07/21 23:51:32 dhinton Exp
7
* @author Pradeep Gore <pradeep@oomworks.com>
12
#ifndef TAO_Notify_TIMER_H
13
#define TAO_Notify_TIMER_H
14
#include /**/ "ace/pre.h"
16
#include "notify_export.h"
18
#if !defined (ACE_LACKS_PRAGMA_ONCE)
20
#endif /* ACE_LACKS_PRAGMA_ONCE */
22
#include "ace/Time_Value.h"
23
#include "Refcountable.h"
25
class ACE_Event_Handler;
28
* @class TAO_Notify_Timer
30
* @brief Interface for scheduling timers.
33
class TAO_Notify_Export TAO_Notify_Timer : public TAO_Notify_Refcountable
37
virtual ~TAO_Notify_Timer (){};
40
virtual long schedule_timer (ACE_Event_Handler *handler,
41
const ACE_Time_Value &delay_time,
42
const ACE_Time_Value &interval) = 0;
45
virtual int cancel_timer (long timer_id) = 0;
48
#include /**/ "ace/post.h"
49
#endif /* TAO_Notify_TIMER_H */