summaryrefslogtreecommitdiff
path: root/cpp/include/qpid/messaging/Receiver.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-03-29 18:15:42 +0000
committerGordon Sim <gsim@apache.org>2010-03-29 18:15:42 +0000
commitadfea171e68298b9b0ced9fe54c2232b963e077e (patch)
treecc51faebbf79d6b1ac84360e2ad6526939912563 /cpp/include/qpid/messaging/Receiver.h
parentc2b13417889ca05c880736e49bba91fb1ba4bd5d (diff)
downloadqpid-python-adfea171e68298b9b0ced9fe54c2232b963e077e.tar.gz
QPID-2406: a more explicit solution for durations in the messaging api
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@928855 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid/messaging/Receiver.h')
-rw-r--r--cpp/include/qpid/messaging/Receiver.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/include/qpid/messaging/Receiver.h b/cpp/include/qpid/messaging/Receiver.h
index 80b58106d7..f0b9a7d66e 100644
--- a/cpp/include/qpid/messaging/Receiver.h
+++ b/cpp/include/qpid/messaging/Receiver.h
@@ -53,7 +53,7 @@ class Receiver : public qpid::messaging::Handle<ReceiverImpl>
* available. Returns false if there is no message to give after
* waiting for the specified timeout.
*/
- QPID_CLIENT_EXTERN bool get(Message& message, Duration timeout=INFINITE_DURATION);
+ QPID_CLIENT_EXTERN bool get(Message& message, Duration timeout=Duration::INFINITE);
/**
* Retrieves a message from this receivers local queue, or waits
* for up to the specified timeout for a message to become
@@ -62,7 +62,7 @@ class Receiver : public qpid::messaging::Handle<ReceiverImpl>
*@exception NoMessageAvailable if there is no message to give
* after waiting for the specified timeout.
*/
- QPID_CLIENT_EXTERN Message get(Duration timeout=INFINITE_DURATION);
+ QPID_CLIENT_EXTERN Message get(Duration timeout=Duration::INFINITE);
/**
* Retrieves a message for this receivers subscription or waits
* for up to the specified timeout for one to become
@@ -70,7 +70,7 @@ class Receiver : public qpid::messaging::Handle<ReceiverImpl>
* that there is no message for the subscription this receiver is
* serving before returning false.
*/
- QPID_CLIENT_EXTERN bool fetch(Message& message, Duration timeout=INFINITE_DURATION);
+ QPID_CLIENT_EXTERN bool fetch(Message& message, Duration timeout=Duration::INFINITE);
/**
* Retrieves a message for this receivers subscription or waits
* for up to the specified timeout for one to become
@@ -81,7 +81,7 @@ class Receiver : public qpid::messaging::Handle<ReceiverImpl>
*@exception NoMessageAvailable if there is no message to give
* after waiting for the specified timeout.
*/
- QPID_CLIENT_EXTERN Message fetch(Duration timeout=INFINITE_DURATION);
+ QPID_CLIENT_EXTERN Message fetch(Duration timeout=Duration::INFINITE);
/**
* Sets the capacity for the receiver. The capacity determines how
* many incoming messages can be held in the receiver before being