activemq-cpp-3.6.0
|
A container that holds a response object. More...
#include <src/main/activemq/transport/FutureResponse.h>
Public Member Functions | |
FutureResponse () | |
FutureResponse (const Pointer< ResponseCallback > responseCallback) | |
virtual | ~FutureResponse () |
Pointer< Response > | getResponse () const |
Getters for the response property. | |
Pointer< Response > | getResponse () |
Pointer< Response > | getResponse (unsigned int timeout) const |
Getters for the response property. | |
Pointer< Response > | getResponse (unsigned int timeout) |
void | setResponse (Pointer< Response > response) |
Setter for the response property. |
A container that holds a response object.
Callers of the getResponse method will block until a response has been receive unless they call the getRepsonse that takes a timeout.
activemq::transport::FutureResponse::FutureResponse | ( | ) |
activemq::transport::FutureResponse::FutureResponse | ( | const Pointer< ResponseCallback > | responseCallback | ) |
|
virtual |
Getters for the response property.
Infinite Wait.
InterruptedIOException | if the wait for response is interrupted. |
Getters for the response property.
Timed Wait.
timeout | Time to wait in milliseconds for a Response. |
InterruptedIOException | if the wait for response is interrupted. |
Setter for the response property.
response | the response object for the request. |