Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / Discarding / Notify_Structured_Push_Consumer.h
blobf7bc54f81f67cb80278e9f50dadcaaa8e333d665
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Notify_Structured_Push_Consumer.h
6 * A structured push consumer implementation.
8 * @author Chad Elliott <elliott_c@ociweb.com>
9 */
10 //=============================================================================
12 #ifndef TAO_NOTIFY_STRUCTURED_PUSH_CONSUMER_H
13 #define TAO_NOTIFY_STRUCTURED_PUSH_CONSUMER_H
15 #include "Notify_StructuredPushConsumer.h"
17 class Notify_Test_Client;
19 class Notify_Structured_Push_Consumer: public TAO_Notify_Tests_StructuredPushConsumer
21 public:
22 Notify_Structured_Push_Consumer (
23 const char* name,
24 CORBA::Short policy,
25 CORBA::Long max_events_per_consumer,
26 Notify_Test_Client& client);
28 void _connect (CosNotifyChannelAdmin::ConsumerAdmin_ptr consumer_admin);
30 protected:
31 void push_structured_event (const CosNotification::StructuredEvent&);
33 ACE_CString name_;
34 CORBA::Short discard_policy_;
35 CORBA::Long max_events_per_consumer_;
36 CORBA::Long count_;
37 CORBA::Long first_;
38 Notify_Test_Client& client_;
39 CORBA::Long sent_;
42 #endif /* TAO_NOTIFY_STRUCTURED_PUSH_CONSUMER_H */