#include <EC_Reactive_Timeout_Generator.h>
Inheritance diagram for TAO_EC_Reactive_Timeout_Generator:


Public Member Functions | |
| TAO_EC_Reactive_Timeout_Generator (ACE_Reactor *reactor=0) | |
| virtual | ~TAO_EC_Reactive_Timeout_Generator (void) |
| destructor | |
| virtual void | activate (void) |
| Activate any internal threads. | |
| virtual void | shutdown (void) |
| virtual int | schedule_timer (TAO_EC_Timeout_Filter *filter, const ACE_Time_Value &delta, const ACE_Time_Value &interval) |
| Add a timer at the given priority, returns the timer ID. | |
| virtual int | cancel_timer (const TAO_EC_QOS_Info &info, int id) |
| Cancel a timer at the given priority. | |
Private Attributes | |
| ACE_Reactor * | reactor_ |
| The reactor. | |
| TAO_EC_Timeout_Adapter | event_handler_ |
| An adapter to receive the timeout events. | |
Implements the Timeout_Generator using an ACE_Reactor. Usually the same reactor that is used by the ORB where the EC runs.
Definition at line 38 of file EC_Reactive_Timeout_Generator.h.
|
|
Constructor. If is 0 then we use the reactor in the ORB singleton. Definition at line 13 of file EC_Reactive_Timeout_Generator.cpp.
00014 : reactor_ (reactor) 00015 { 00016 } |
|
|
destructor
Definition at line 18 of file EC_Reactive_Timeout_Generator.cpp.
00019 {
00020 }
|
|
|
Activate any internal threads.
Implements TAO_EC_Timeout_Generator. Definition at line 23 of file EC_Reactive_Timeout_Generator.cpp.
00024 {
00025 }
|
|
||||||||||||
|
Cancel a timer at the given priority.
Implements TAO_EC_Timeout_Generator. Definition at line 47 of file EC_Reactive_Timeout_Generator.cpp. References ACE_Reactor::cancel_timer().
00050 {
00051 const void *vp;
00052
00053 return this->reactor_->cancel_timer (id, &vp);
00054 }
|
|
||||||||||||||||
|
Add a timer at the given priority, returns the timer ID.
Implements TAO_EC_Timeout_Generator. Definition at line 35 of file EC_Reactive_Timeout_Generator.cpp. References ACE_Reactor::schedule_timer().
00039 {
00040 return this->reactor_->schedule_timer (&this->event_handler_,
00041 static_cast<void*> (filter),
00042 delta,
00043 interval);
00044 }
|
|
|
Deactivate any internal threads, clients can destroy the object after calling this method. Implements TAO_EC_Timeout_Generator. Definition at line 28 of file EC_Reactive_Timeout_Generator.cpp. References ACE_Reactor::cancel_timer(), and ACE_Event_Handler::reactor().
00029 {
00030 this->reactor_->cancel_timer (&this->event_handler_);
00031 this->event_handler_.reactor (0);
00032 }
|
|
|
An adapter to receive the timeout events.
Definition at line 63 of file EC_Reactive_Timeout_Generator.h. |
|
|
The reactor.
Definition at line 60 of file EC_Reactive_Timeout_Generator.h. |
1.3.6