summaryrefslogtreecommitdiff
path: root/cpp/lib/broker/SessionHandlerImpl.cpp
diff options
context:
space:
mode:
authorMartin Ritchie <ritchiem@apache.org>2007-05-09 12:32:27 +0000
committerMartin Ritchie <ritchiem@apache.org>2007-05-09 12:32:27 +0000
commit5492430bf553b161564dca0aeb00980ac9256615 (patch)
tree842fbf3f1c218202c018a24e7f3b4ee4283c2b44 /cpp/lib/broker/SessionHandlerImpl.cpp
parentcd14a71252b82ab017b51619be5bf0165de8fb11 (diff)
downloadqpid-python-5492430bf553b161564dca0aeb00980ac9256615.tar.gz
QPID-25 TimeToLive Basic implementation.
Messages are not automatically purged rather they are checked as they are selected for delivery. If they have expired they are dequeued. AMQChannel - Update to call setExpiration on the message so the time can be adjusted if client & broker clocks are out of sync. AMQMessage - Caches the _expiration time for internal use, adjusted for broker time. This leaves message headers unchanged so receiving client can see actual value requested by producer. ConcurrentSelectorDeliveryManager - Updated to check for expired messages when getNextMessage is called. Immediate messages are NOT expired. Subscription - Added method to getChannel that this Subscription is attatched to so we can retrieve the StoreContext for dequeue-ing the message. TimeToLiveTest - Test of Time to live. Sends 50 msgs. 1 non-timed 48 1 second and 1 non-timed ensure only 2 msgs come back after 2 seconds git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/M2@536506 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/broker/SessionHandlerImpl.cpp')
0 files changed, 0 insertions, 0 deletions