summaryrefslogtreecommitdiff
path: root/qpid/java
diff options
context:
space:
mode:
authorArnaud Simon <arnaudsimon@apache.org>2007-07-31 11:44:28 +0000
committerArnaud Simon <arnaudsimon@apache.org>2007-07-31 11:44:28 +0000
commit0750a85f37eb39e1c59c37270df66abceb030395 (patch)
treed16688c5b71508215378884012ab999a2c80e34e /qpid/java
parent5ea851da0da21a0399861ba3ceb486565d304b64 (diff)
downloadqpid-python-0750a85f37eb39e1c59c37270df66abceb030395.tar.gz
Changed receive definition
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@561300 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
-rw-r--r--qpid/java/client/src/main/java/org/apache/qpid/nclient/api/MessageReceiver.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/nclient/api/MessageReceiver.java b/qpid/java/client/src/main/java/org/apache/qpid/nclient/api/MessageReceiver.java
index e34238abc0..be5c9298ae 100644
--- a/qpid/java/client/src/main/java/org/apache/qpid/nclient/api/MessageReceiver.java
+++ b/qpid/java/client/src/main/java/org/apache/qpid/nclient/api/MessageReceiver.java
@@ -19,6 +19,7 @@
package org.apache.qpid.nclient.api;
import org.apache.qpidity.QpidException;
+import org.apache.qpidity.Option;
import java.util.Set;
@@ -32,12 +33,13 @@ public interface MessageReceiver extends Resource
*
* @return This receiver set of options.
*/
- public Set<CreateReceiverOption> getOptions();
+ public Set<Option> getOptions();
/**
* Receive a message form this receiver queue.
- * <p> If the timeout is less or equal than 0 then this operation is blocking.
- * Otherwise it blocks until a message arrives, the timeout expires, or this receiver is closed.
+ * <p> If the timeout is equal to 0 then this operation is blocking.
+ * <p> If the timeout is less than 0 then this operation retruns immediatly
+ * <p> Otherwise it blocks until a message arrives, the timeout expires, or this receiver is closed.
* <p> To receive messages, a receiver must be started.
*
* @param timeout The timeout value (in milliseconds).