blob: 519b1ff0a47088f81d7b7f6a36cfcd22ed714ba5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
#include "orbsvcs/Notify/Method_Request_Event.h"
#include "orbsvcs/Notify/Delivery_Request.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event (
const TAO_Notify_Event * event)
: event_ (event)
{
}
TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event (
const TAO_Notify::Delivery_Request_Ptr & request)
: event_ (request->event ().get ())
, delivery_request_ (request)
{
}
TAO_Notify_Method_Request_Event::TAO_Notify_Method_Request_Event (
const TAO_Notify_Method_Request_Event & rhs,
const TAO_Notify_Event * event)
: event_ (event)
, delivery_request_ (rhs.delivery_request_)
{
}
TAO_Notify_Method_Request_Event::~TAO_Notify_Method_Request_Event()
{
}
void
TAO_Notify_Method_Request_Event::complete ()
{
if (this->delivery_request_.get () != 0)
{
this->delivery_request_->complete ();
}
}
unsigned long
TAO_Notify_Method_Request_Event::sequence ()
{
if (this->delivery_request_.get () != 0)
{
return this->delivery_request_->sequence ();
}
return 0;
}
bool
TAO_Notify_Method_Request_Event::should_retry ()
{
if (this->delivery_request_.get () != 0)
{
return this->delivery_request_->should_retry ();
}
return false;
}
/**********************************************************/
TAO_Notify_Method_Request_Event_Queueable::TAO_Notify_Method_Request_Event_Queueable (
const TAO_Notify_Method_Request_Event & prev_request,
const TAO_Notify_Event::Ptr& event)
: TAO_Notify_Method_Request_Queueable (event.get ())
, TAO_Notify_Method_Request_Event (prev_request, event.get ())
, event_var_ (event)
{
}
TAO_Notify_Method_Request_Event_Queueable::TAO_Notify_Method_Request_Event_Queueable (
TAO_Notify::Delivery_Request_Ptr & request)
: TAO_Notify_Method_Request_Queueable (request->event ().get ())
, TAO_Notify_Method_Request_Event (request, request->event ().get ())
, event_var_ (request->event ())
{
}
TAO_Notify_Method_Request_Event_Queueable::~TAO_Notify_Method_Request_Event_Queueable ()
{
}
int
TAO_Notify_Method_Request_Event_Queueable::execute (void)
{
ACE_ASSERT (false);
return -1;
}
const TAO_Notify_Event *
TAO_Notify_Method_Request_Event::event() const
{
return this->event_;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|