diff options
| author | Gordon Sim <gsim@apache.org> | 2010-01-27 10:42:19 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-01-27 10:42:19 +0000 |
| commit | f13dceb97198486cd9bd9574babac6b39d05b1a6 (patch) | |
| tree | 3e875358e2ba2a49fb7a27815c22a675e4f2e45b /cpp/src/qpid/messaging | |
| parent | c5f105c31896a42c4a192b9585016aa92285e6ff (diff) | |
| download | qpid-python-f13dceb97198486cd9bd9574babac6b39d05b1a6.tar.gz | |
QPID-664: change cancel() to close() for consistency
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903599 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/messaging')
| -rw-r--r-- | cpp/src/qpid/messaging/Receiver.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/messaging/ReceiverImpl.h | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/messaging/Sender.cpp | 2 | ||||
| -rw-r--r-- | cpp/src/qpid/messaging/SenderImpl.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/cpp/src/qpid/messaging/Receiver.cpp b/cpp/src/qpid/messaging/Receiver.cpp index bf9c056db8..478228e0fb 100644 --- a/cpp/src/qpid/messaging/Receiver.cpp +++ b/cpp/src/qpid/messaging/Receiver.cpp @@ -47,7 +47,7 @@ void Receiver::setCapacity(uint32_t c) { impl->setCapacity(c); } uint32_t Receiver::getCapacity() { return impl->getCapacity(); } uint32_t Receiver::available() { return impl->available(); } uint32_t Receiver::pendingAck() { return impl->pendingAck(); } -void Receiver::cancel() { impl->cancel(); } +void Receiver::close() { impl->close(); } const std::string& Receiver::getName() const { return impl->getName(); } Session Receiver::getSession() const { return impl->getSession(); } }} // namespace qpid::messaging diff --git a/cpp/src/qpid/messaging/ReceiverImpl.h b/cpp/src/qpid/messaging/ReceiverImpl.h index 447a505518..2076de5d56 100644 --- a/cpp/src/qpid/messaging/ReceiverImpl.h +++ b/cpp/src/qpid/messaging/ReceiverImpl.h @@ -46,7 +46,7 @@ class ReceiverImpl : public virtual qpid::RefCounted virtual uint32_t getCapacity() = 0; virtual uint32_t available() = 0; virtual uint32_t pendingAck() = 0; - virtual void cancel() = 0; + virtual void close() = 0; virtual const std::string& getName() const = 0; virtual Session getSession() const = 0; }; diff --git a/cpp/src/qpid/messaging/Sender.cpp b/cpp/src/qpid/messaging/Sender.cpp index f2303f4126..5e18db1d7c 100644 --- a/cpp/src/qpid/messaging/Sender.cpp +++ b/cpp/src/qpid/messaging/Sender.cpp @@ -40,7 +40,7 @@ Sender::Sender(const Sender& s) : qpid::client::Handle<SenderImpl>() { PI::copy( Sender::~Sender() { PI::dtor(*this); } Sender& Sender::operator=(const Sender& s) { return PI::assign(*this, s); } void Sender::send(const Message& message) { impl->send(message); } -void Sender::cancel() { impl->cancel(); } +void Sender::close() { impl->close(); } void Sender::setCapacity(uint32_t c) { impl->setCapacity(c); } uint32_t Sender::getCapacity() { return impl->getCapacity(); } uint32_t Sender::pending() { return impl->pending(); } diff --git a/cpp/src/qpid/messaging/SenderImpl.h b/cpp/src/qpid/messaging/SenderImpl.h index 5f30417f6a..0294688771 100644 --- a/cpp/src/qpid/messaging/SenderImpl.h +++ b/cpp/src/qpid/messaging/SenderImpl.h @@ -37,7 +37,7 @@ class SenderImpl : public virtual qpid::RefCounted public: virtual ~SenderImpl() {} virtual void send(const Message& message) = 0; - virtual void cancel() = 0; + virtual void close() = 0; virtual void setCapacity(uint32_t) = 0; virtual uint32_t getCapacity() = 0; virtual uint32_t pending() = 0; |
