diff options
| author | Gordon Sim <gsim@apache.org> | 2013-10-15 12:41:53 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2013-10-15 12:41:53 +0000 |
| commit | b8647a084ec0c3cebe2df4d62f42bebf3be981c3 (patch) | |
| tree | 269bab56d878fbd269ca3781c1ec85e67bbddf61 /cpp/src/qpid/messaging/amqp/SessionHandle.cpp | |
| parent | 59ff6d3e51ebfdba47ee3ed613907f7b9106060c (diff) | |
| download | qpid-python-b8647a084ec0c3cebe2df4d62f42bebf3be981c3.tar.gz | |
QPID-5229: implement release and reject
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1532307 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging/amqp/SessionHandle.cpp')
| -rw-r--r-- | cpp/src/qpid/messaging/amqp/SessionHandle.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/qpid/messaging/amqp/SessionHandle.cpp b/cpp/src/qpid/messaging/amqp/SessionHandle.cpp index 45635e4ced..50fe4ef30e 100644 --- a/cpp/src/qpid/messaging/amqp/SessionHandle.cpp +++ b/cpp/src/qpid/messaging/amqp/SessionHandle.cpp @@ -57,18 +57,17 @@ void SessionHandle::acknowledge(bool /*sync*/) void SessionHandle::acknowledge(qpid::messaging::Message& msg, bool cumulative) { - //TODO: handle cumulative connection->acknowledge(session, &msg, cumulative); } -void SessionHandle::reject(qpid::messaging::Message&) +void SessionHandle::reject(qpid::messaging::Message& msg) { - + connection->nack(session, msg, true); } -void SessionHandle::release(qpid::messaging::Message&) +void SessionHandle::release(qpid::messaging::Message& msg) { - + connection->nack(session, msg, false); } void SessionHandle::close() |
