diff options
author | Alan Conway <aconway@apache.org> | 2009-02-09 22:25:26 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-02-09 22:25:26 +0000 |
commit | 3a60db0672b78a75c52f39f5cefeeb00d3eeba97 (patch) | |
tree | 3f9c211e3649a3ef8a883e95d741387cf402dd17 /cpp/src/qpid/broker/Message.h | |
parent | c9a654925355a4dd128d5111af862e8be89e0a45 (diff) | |
download | qpid-python-3a60db0672b78a75c52f39f5cefeeb00d3eeba97.tar.gz |
Cluster support for message time-to-live.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@742774 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Message.h')
-rw-r--r-- | cpp/src/qpid/broker/Message.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/Message.h b/cpp/src/qpid/broker/Message.h index de716e9441..96fcf61dfc 100644 --- a/cpp/src/qpid/broker/Message.h +++ b/cpp/src/qpid/broker/Message.h @@ -45,6 +45,7 @@ class Exchange; class ExchangeRegistry; class MessageStore; class Queue; +class ExpiryPolicy; class Message : public PersistableMessage { public: @@ -73,8 +74,11 @@ public: const framing::FieldTable* getApplicationHeaders() const; bool isPersistent(); bool requiresAccept(); - void setTimestamp(); - bool hasExpired() const; + + void setTimestamp(const boost::intrusive_ptr<ExpiryPolicy>& e); + void setExpiryPolicy(const boost::intrusive_ptr<ExpiryPolicy>& e); + bool hasExpired(); + sys::AbsTime getExpiration() const { return expiration; } framing::FrameSet& getFrames() { return frames; } const framing::FrameSet& getFrames() const { return frames; } @@ -171,6 +175,7 @@ public: ConnectionToken* publisher; mutable MessageAdapter* adapter; qpid::sys::AbsTime expiration; + boost::intrusive_ptr<ExpiryPolicy> expiryPolicy; static TransferAdapter TRANSFER; |