From f9380575ddccbe48edd5305e96db70892c1dc1aa Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 27 Mar 2008 18:04:42 +0000 Subject: 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 --- cpp/src/qpid/broker/Message.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cpp/src/qpid/broker/Message.cpp') 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 -- cgit v1.2.1