TAO_Notify_Method_Request_Event Class Reference

A base class for all Method Requests that are associated with events. More...

#include <Method_Request_Event.h>

Inheritance diagram for TAO_Notify_Method_Request_Event:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Method_Request_Event:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_Method_Request_Event (const TAO_Notify_Event *)
 Construct from event.

 TAO_Notify_Method_Request_Event (const TAO_Notify::Delivery_Request_Ptr &delivery_request)
 Construct from a delivery request.

 TAO_Notify_Method_Request_Event (const TAO_Notify_Method_Request_Event &rhs, const TAO_Notify_Event *event)
virtual ~TAO_Notify_Method_Request_Event ()
 Destructor.

const TAO_Notify_Eventevent () const
void complete ()
unsigned long sequence ()
bool should_retry ()

Protected Attributes

const TAO_Notify_Eventevent_
 The Event.

TAO_Notify::Delivery_Request_Ptr delivery_request_
 Pointer to the routing slip's delivery request (if any).


Detailed Description

A base class for all Method Requests that are associated with events.

Definition at line 36 of file Method_Request_Event.h.


Constructor & Destructor Documentation

TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event const TAO_Notify_Event  ) 
 

Construct from event.

Definition at line 10 of file Method_Request_Event.cpp.

00012   : event_ (event)
00013 {
00014 }

TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event const TAO_Notify::Delivery_Request_Ptr delivery_request  ) 
 

Construct from a delivery request.

Definition at line 16 of file Method_Request_Event.cpp.

References TAO_Notify::Delivery_Request_Ptr.

00018   : event_ (request->event ().get ())
00019   , delivery_request_ (request)
00020 {
00021 }

TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event const TAO_Notify_Method_Request_Event rhs,
const TAO_Notify_Event event
 

Construct from another Method Request Event is passed separately because it may be a copy of the one in request.

Definition at line 23 of file Method_Request_Event.cpp.

00026   : event_ (event)
00027   , delivery_request_ (rhs.delivery_request_)
00028 {
00029 }

TAO_Notify_Method_Request_Event::~TAO_Notify_Method_Request_Event  )  [virtual]
 

Destructor.

Definition at line 31 of file Method_Request_Event.cpp.

00032 {
00033 }


Member Function Documentation

void TAO_Notify_Method_Request_Event::complete  ) 
 

Definition at line 36 of file Method_Request_Event.cpp.

References delivery_request_, and ACE_Strong_Bound_Ptr< X, ACE_LOCK >::get().

Referenced by TAO_Notify_SequencePushConsumer::dispatch_from_queue(), TAO_Notify_Consumer::dispatch_from_queue(), and TAO_Notify_Method_Request_Lookup::execute_i().

00037 {
00038   if (this->delivery_request_.get () != 0)
00039   {
00040     this->delivery_request_->complete ();
00041   }
00042 }

const TAO_Notify_Event * TAO_Notify_Method_Request_Event::event  )  const
 

Definition at line 97 of file Method_Request_Event.cpp.

Referenced by TAO_Notify_Method_Request_Lookup_No_Copy::copy(), TAO_Notify_SequencePushConsumer::dispatch_from_queue(), and TAO_Notify_Consumer::dispatch_request().

00098 {
00099   return this->event_;
00100 }

unsigned long TAO_Notify_Method_Request_Event::sequence  ) 
 

Definition at line 46 of file Method_Request_Event.cpp.

References delivery_request_, and ACE_Strong_Bound_Ptr< X, ACE_LOCK >::get().

Referenced by TAO_Notify_SequencePushConsumer::dispatch_from_queue(), TAO_Notify_Consumer::dispatch_from_queue(), TAO_Notify_Consumer::dispatch_request(), and TAO_Notify_Consumer::enqueue_request().

00047 {
00048   if (this->delivery_request_.get () != 0)
00049   {
00050     return this->delivery_request_->sequence ();
00051   }
00052   return 0;
00053 }

bool TAO_Notify_Method_Request_Event::should_retry  ) 
 

Definition at line 56 of file Method_Request_Event.cpp.

References delivery_request_, and ACE_Strong_Bound_Ptr< X, ACE_LOCK >::get().

Referenced by TAO_Notify_SequencePushConsumer::dispatch_from_queue(), and TAO_Notify_Consumer::dispatch_request().

00057 {
00058   if (this->delivery_request_.get () != 0)
00059   {
00060     return this->delivery_request_->should_retry ();
00061   }
00062   return false;
00063 }


Member Data Documentation

TAO_Notify::Delivery_Request_Ptr TAO_Notify_Method_Request_Event::delivery_request_ [protected]
 

Pointer to the routing slip's delivery request (if any).

Definition at line 66 of file Method_Request_Event.h.

Referenced by complete(), sequence(), and should_retry().

const TAO_Notify_Event* TAO_Notify_Method_Request_Event::event_ [protected]
 

The Event.

Definition at line 63 of file Method_Request_Event.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:32:16 2006 for TAO_CosNotification by doxygen 1.3.6