diff options
author | Gordon Sim <gsim@apache.org> | 2008-03-27 18:04:42 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2008-03-27 18:04:42 +0000 |
commit | f9380575ddccbe48edd5305e96db70892c1dc1aa (patch) | |
tree | bf4361ed80e1ad3c3d2aca4a345c8d0b49d5d642 /cpp/src/qpid/broker/Message.cpp | |
parent | 719c2529a14527c236e871603136ccbe44f632d3 (diff) | |
download | qpid-python-f9380575ddccbe48edd5305e96db70892c1dc1aa.tar.gz |
Send accept in response to message publications if required.
Hold up completion (and accept) until message from transfer is fully enqueued.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@641929 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/Message.cpp')
-rw-r--r-- | cpp/src/qpid/broker/Message.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/src/qpid/broker/Message.cpp b/cpp/src/qpid/broker/Message.cpp index 21908256a1..b60a95228d 100644 --- a/cpp/src/qpid/broker/Message.cpp +++ b/cpp/src/qpid/broker/Message.cpp @@ -84,6 +84,11 @@ bool Message::isPersistent() return getAdapter().isPersistent(frames); } +bool Message::requiresAccept() +{ + return getAdapter().requiresAccept(frames); +} + uint32_t Message::getRequiredCredit() const { //add up payload for all header and content frames in the frameset |