version 1.84, 2006/09/08 17:25:01
|
version 1.85, 2006/09/12 17:20:14
|
|
|
(see MessageQueue class). Derived classes may add their own fields. | (see MessageQueue class). Derived classes may add their own fields. |
This base class defines a common type field, which is the type of | This base class defines a common type field, which is the type of |
the message. | the message. |
|
|
The Message class also provides previous and next pointers which are |
|
used to place the messages on a queue by the MessageQueue class. |
|
*/ | */ |
class PEGASUS_COMMON_LINKAGE Message : public Linkable | class PEGASUS_COMMON_LINKAGE Message : public Linkable |
{ | { |
|
|
_isComplete(true), | _isComplete(true), |
_index(0) | _index(0) |
{ | { |
|
|
} | } |
| |
Message & operator = ( const Message & msg) |
virtual ~Message(); |
{ |
|
if (this != &msg) |
|
{ |
|
_type = msg._type; |
|
_mask = msg._mask; |
|
_last_thread_id = msg._last_thread_id; |
|
_async = 0; |
|
dest = msg.dest; |
|
_httpMethod = msg._httpMethod; |
|
_index = msg._index; |
|
_isComplete = msg._isComplete; |
|
|
|
} |
|
return *this; |
|
} |
|
| |
|
// NOTE: The compiler default implementation of the copy constructor |
|
// is used for this class. |
| |
virtual ~Message(); |
|
Boolean getCloseConnect() const { return _close_connect; } | Boolean getCloseConnect() const { return _close_connect; } |
void setCloseConnect(Boolean close_connect) | void setCloseConnect(Boolean close_connect) |
{ | { |
|
|
Message *ret = _async; | Message *ret = _async; |
_async = 0; | _async = 0; |
return ret; | return ret; |
|
|
} | } |
| |
void put_async(Message * msg) | void put_async(Message * msg) |
|
|
public: | public: |
Message *_async; | Message *_async; |
Uint32 dest; | Uint32 dest; |
//needed for PEP 128 - transmitting Server Response Time to Client |
|
| |
private: | private: |
|
Message& operator=(const Message& msg); |
|
|
Boolean _isComplete; | Boolean _isComplete; |
Uint32 _index; | Uint32 _index; |
|
|
friend class cimom; |
|
friend class MessageQueueService; |
|
friend class AsyncLegacyOperationStart; |
|
friend class AsyncLegacyOperationResult; |
|
|
|
}; | }; |
| |
| |