summaryrefslogtreecommitdiff
path: root/qpid/java/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/java/client/src')
-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).