blob: 7c243fea89c1c568fa4420aa91a353f93bd0dd40 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file Validate_Client_Task.h
*
* @author Yan Dai (dai_y@ociweb.com)
*/
//=============================================================================
#ifndef NOTIFY_VALIDATE_CLIENT_TASK_H
#define NOTIFY_VALIDATE_CLIENT_TASK_H
#include /**/ "ace/pre.h"
#include "notify_serv_export.h"
#include "tao/ORB.h"
#include "tao/Condition.h"
#include "ace/Task.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Notify_EventChannelFactory;
/**
* @class TAO_Notify_validate_client_Task
*
* @brief ClientControl
*
* Defines the interface for the consumer control strategy.
* This strategy handles misbehaving or failing consumers.
* = MEMORY MANAGEMENT
* = LOCKING
* = TODO
*/
class TAO_Notify_Serv_Export TAO_Notify_validate_client_Task
: public ACE_Task<ACE_NULL_SYNCH>
{
public:
typedef TAO_Condition<TAO_SYNCH_MUTEX> CONDITION;
/// Constructor. It does not assume ownership of the <event_channel>
/// parameter.
TAO_Notify_validate_client_Task (const ACE_Time_Value &delay,
const ACE_Time_Value &interval,
TAO_Notify_EventChannelFactory *ecf);
/// destructor...
virtual ~TAO_Notify_validate_client_Task (void);
virtual int svc (void);
void shutdown (void);
private:
/// The delay of first time validate.
ACE_Time_Value delay_;
/// The validate interval
ACE_Time_Value interval_;
/// The event channel
TAO_Notify_EventChannelFactory *ecf_;
CONDITION condition_;
bool shutdown_;
};
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* NOTIFY_VALIDATE_CLIENT_TASK_H */
|