A reactive worker task. Simply executes the command in the caller's context. More...
#include <Reactive_Task.h>


Public Member Functions | |
| TAO_Notify_Reactive_Task (void) | |
| Constructor. | |
| virtual | ~TAO_Notify_Reactive_Task (void) |
| Destructor. | |
| void | init (void) |
| Init the reactive task. | |
| virtual void | shutdown (void) |
| Shutdown task. | |
| virtual void | execute (TAO_Notify_Method_Request &method_request) |
| Exec the request. | |
| virtual TAO_Notify_Timer * | timer (void) |
| The object used by clients to register timers. This method returns a Reactor based Timer. | |
| virtual TAO_Notify_Buffering_Strategy * | buffering_strategy (void) |
| Returns NULL. | |
Private Member Functions | |
| virtual void | release (void) |
| Release. | |
Private Attributes | |
| TAO_Notify_Timer_Reactor::Ptr | timer_ |
| The timer. | |
A reactive worker task. Simply executes the command in the caller's context.
Definition at line 35 of file Reactive_Task.h.
| TAO_Notify_Reactive_Task::TAO_Notify_Reactive_Task | ( | void | ) |
| TAO_Notify_Reactive_Task::~TAO_Notify_Reactive_Task | ( | void | ) | [virtual] |
| TAO_Notify_Buffering_Strategy * TAO_Notify_Reactive_Task::buffering_strategy | ( | void | ) | [virtual] |
| void TAO_Notify_Reactive_Task::execute | ( | TAO_Notify_Method_Request & | method_request | ) | [virtual] |
Exec the request.
Implements TAO_Notify_Worker_Task.
Definition at line 48 of file Reactive_Task.cpp.
{
method_request.execute ();
}
| void TAO_Notify_Reactive_Task::init | ( | void | ) |
Init the reactive task.
Definition at line 25 of file Reactive_Task.cpp.
{
ACE_ASSERT (this->timer_.get() == 0);
TAO_Notify_Timer_Reactor* timer = 0;
ACE_NEW_THROW_EX (timer,
TAO_Notify_Timer_Reactor (),
CORBA::NO_MEMORY ());
this->timer_.reset (timer);
}
| void TAO_Notify_Reactive_Task::release | ( | void | ) | [private, virtual] |
Release.
Implements TAO_Notify_Refcountable.
Definition at line 37 of file Reactive_Task.cpp.
{
delete this; //TODO: Release via factory.
}
| void TAO_Notify_Reactive_Task::shutdown | ( | void | ) | [virtual] |
Shutdown task.
Implements TAO_Notify_Worker_Task.
Definition at line 43 of file Reactive_Task.cpp.
{
}
| TAO_Notify_Timer * TAO_Notify_Reactive_Task::timer | ( | void | ) | [virtual] |
The object used by clients to register timers. This method returns a Reactor based Timer.
Implements TAO_Notify_Worker_Task.
Definition at line 54 of file Reactive_Task.cpp.
The timer.
Definition at line 62 of file Reactive_Task.h.
1.7.0