00001 /* -*- C++ -*- */ 00002 /** 00003 * @file SequenceProxyPushConsumer.h 00004 * 00005 * SequenceProxyPushConsumer.h,v 1.19 2006/03/15 21:29:09 jtc Exp 00006 * 00007 * @author Pradeep Gore <pradeep@oomworks.com> 00008 * 00009 * 00010 */ 00011 00012 #ifndef TAO_Notify_SEQUENCEPROXYPUSHCONSUMER_H 00013 #define TAO_Notify_SEQUENCEPROXYPUSHCONSUMER_H 00014 00015 #include /**/ "ace/pre.h" 00016 00017 #include "orbsvcs/Notify/notify_serv_export.h" 00018 00019 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00020 # pragma once 00021 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00022 00023 #include "orbsvcs/CosNotifyChannelAdminS.h" 00024 00025 #include "orbsvcs/Notify/ProxyConsumer_T.h" 00026 00027 #if defined(_MSC_VER) 00028 #pragma warning(push) 00029 #pragma warning(disable:4250) 00030 #endif /* _MSC_VER */ 00031 00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00033 00034 /** 00035 * @class TAO_Notify_SequenceProxyPushConsumer 00036 * 00037 * @brief 00038 * 00039 */ 00040 class TAO_Notify_Serv_Export TAO_Notify_SequenceProxyPushConsumer 00041 : public virtual TAO_Notify_ProxyConsumer_T <POA_CosNotifyChannelAdmin::SequenceProxyPushConsumer> 00042 { 00043 typedef TAO_Notify_ProxyConsumer_T <POA_CosNotifyChannelAdmin::SequenceProxyPushConsumer> SuperClass; 00044 friend class TAO_Notify_Builder; 00045 public: 00046 /// Constuctor 00047 TAO_Notify_SequenceProxyPushConsumer (void); 00048 00049 /// Destructor 00050 virtual ~TAO_Notify_SequenceProxyPushConsumer (); 00051 00052 virtual const char * get_proxy_type_name (void) const; 00053 00054 virtual void load_attrs (const TAO_Notify::NVPList& attrs); 00055 00056 protected: 00057 ///= Data Members 00058 TAO_Notify_Property_Time pacing_interval_; 00059 00060 ///= Protected Methods 00061 00062 //= interface methods 00063 virtual CosNotifyChannelAdmin::ProxyType MyType (ACE_ENV_SINGLE_ARG_DECL) 00064 ACE_THROW_SPEC (( 00065 CORBA::SystemException 00066 )); 00067 00068 virtual void connect_sequence_push_supplier (CosNotifyComm::SequencePushSupplier_ptr push_supplier 00069 ACE_ENV_ARG_DECL 00070 ) 00071 ACE_THROW_SPEC (( 00072 CORBA::SystemException, 00073 CosEventChannelAdmin::AlreadyConnected 00074 )); 00075 00076 virtual void push_structured_events (const CosNotification::EventBatch & notifications 00077 ACE_ENV_ARG_DECL 00078 ) 00079 ACE_THROW_SPEC (( 00080 CORBA::SystemException, 00081 CosEventComm::Disconnected 00082 )); 00083 00084 virtual void disconnect_sequence_push_consumer (ACE_ENV_SINGLE_ARG_DECL) 00085 ACE_THROW_SPEC (( 00086 CORBA::SystemException 00087 )); 00088 00089 private: 00090 /// TAO_Notify_Destroy_Callback methods 00091 virtual void release (void); 00092 }; 00093 00094 TAO_END_VERSIONED_NAMESPACE_DECL 00095 00096 #if defined(_MSC_VER) 00097 #pragma warning(pop) 00098 #endif /* _MSC_VER */ 00099 00100 #include /**/ "ace/post.h" 00101 00102 #endif /* TAO_Notify_SEQUENCEPROXYPUSHCONSUMER_H */