util/queue/UnSubscribeQueueEntry.h

Go to the documentation of this file.
00001 /*------------------------------------------------------------------------------
00002 Name:      UnSubscribeQueueEntry.h
00003 Project:   xmlBlaster.org
00004 Copyright: xmlBlaster.org, see xmlBlaster-LICENSE file
00005 ------------------------------------------------------------------------------*/
00006 #ifndef _UTIL_QUEUE_UNSUBSCRIBEQUEUEENRY_H
00007 #define _UTIL_QUEUE_UNSUBSCRIBEQUEUEENRY_H
00008 
00009 #include <util/MethodName.h>
00010 #include <util/queue/MsgQueueEntry.h>
00011 #include <client/qos/UnSubscribeQos.h>
00012 #include <client/qos/UnSubscribeReturnQos.h>
00013 #include <client/key/UnSubscribeKey.h>
00014 
00023 namespace org { namespace xmlBlaster { namespace util { namespace queue {
00024 
00025 class Dll_Export UnSubscribeQueueEntry : public org::xmlBlaster::util::queue::MsgQueueEntry
00026 {
00027 public:
00028 
00032    UnSubscribeQueueEntry(org::xmlBlaster::util::Global& global,
00033                          const org::xmlBlaster::client::key::UnSubscribeKey& unSubscribeKey,
00034                          const org::xmlBlaster::client::qos::UnSubscribeQos& unSubscribeQos,
00035                          int priority=NORM_PRIORITY,
00036                          org::xmlBlaster::util::Timestamp uniqueId = TimestampFactory::getInstance().getTimestamp());
00037 
00038    MsgQueueEntry *getClone() const;
00039    
00040    virtual bool isUnSubscribe() const;
00041    
00042    // this should actually be in another interface but since it is an only method we put it here.
00043    const org::xmlBlaster::util::queue::MsgQueueEntry& send(org::xmlBlaster::util::dispatch::I_ConnectionsHandler& connectionsHandler) const;
00044 
00045    org::xmlBlaster::client::qos::UnSubscribeQos getUnSubscribeQos() const;
00046 
00047    org::xmlBlaster::client::key::UnSubscribeKey getUnSubscribeKey() const;
00048  
00049    org::xmlBlaster::client::qos::UnSubscribeReturnQos getUnSubscribeReturnQos() const;
00050 
00051    virtual std::string toXml(const std::string& indent="") const;
00052 
00053 };
00054 
00055 }}}} // namespace
00056 
00057 #endif
00058