Interface through which messages are received.
More...
#include <qpid/messaging/Receiver.h>
List of all members.
Detailed Description
Interface through which messages are received.
Definition at line 44 of file Receiver.h.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
Retrieves a message for this receivers subscription or waits for up to the specified timeout for one to become available.
Unlike get() this method will check with the server that there is no message for the subscription this receiver is serving before returning false.
- Returns:
- false if there is no message to give after waiting for the specified timeout, or if the Receiver is closed, in which case isClose() will be true.
Retrieves a message for this receivers subscription or waits for up to the specified timeout for one to become available.
Unlike get() this method will check with the server that there is no message for the subscription this receiver is serving before throwing an exception.
- Exceptions:
-
NoMessageAvailable | if there is no message to give after waiting for the specified timeout, or if the Receiver is closed, in which case isClose() will be true. |
Retrieves a message from this receivers local queue, or waits for upto the specified timeout for a message to become available.
Retrieves a message from this receivers local queue, or waits for up to the specified timeout for a message to become available.
- Exceptions:
-
NoMessageAvailable | if there is no message to give after waiting for the specified timeout, or if the Receiver is closed, in which case isClose() will be true. |
- Returns:
- the number of messages received and waiting to be fetched.
- Returns:
- the capacity of the receiver. The capacity determines how many incoming messages can be held in the receiver before being requested by a client via fetch() (or pushed to a listener).
Returns the name of this receiver.
Returns a handle to the session associated with this receiver.
- Returns:
- a count of the number of messages received on this receiver that have been acknowledged, but for which that acknowledgement has not yet been confirmed as processed by the server.
Return true if the receiver was closed by a call to close()
- Returns:
- true if handle is null. It is an error to call any function on a null handle.
Definition at line 46 of file Handle.h.
- Returns:
- true if handle is valid, i.e. not null.
Definition at line 43 of file Handle.h.
Conversion to bool supports idiom if (handle) { handle->...
}
Definition at line 49 of file Handle.h.
Operator ! supports idiom if (!handle) { do_if_handle_is_null(); }.
Definition at line 52 of file Handle.h.
Sets the capacity for the receiver.
The capacity determines how many incoming messages can be held in the receiver before being requested by a client via fetch() (or pushed to a listener).
Member Data Documentation
The documentation for this class was generated from the following file: