Listens for Commands sent from the MockTransport. More...
#include <src/main/activemq/transport/mock/InternalCommandListener.h>

Public Member Functions | |
| InternalCommandListener () | |
| virtual | ~InternalCommandListener () |
| void | setTransport (MockTransport *transport) |
| void | setResponseBuilder (const Pointer< ResponseBuilder > responseBuilder) |
| virtual void | onCommand (const Pointer< Command > command) |
| Event handler for the receipt of a command. | |
| void | run () |
| Default implementation of the run method - does nothing. | |
Listens for Commands sent from the MockTransport.
This class processes all outbound commands and sends responses that are constructed by calling the Protocol provided ResponseBuilder and getting a set of Commands to send back into the MockTransport as incoming Commands and Responses.
| activemq::transport::mock::InternalCommandListener::InternalCommandListener | ( | ) |
| virtual activemq::transport::mock::InternalCommandListener::~InternalCommandListener | ( | ) | [virtual] |
| virtual void activemq::transport::mock::InternalCommandListener::onCommand | ( | const Pointer< Command > command | AMQCPP_UNUSED | ) | [virtual] |
Event handler for the receipt of a command.
The transport passes off all received commands to its listeners, the listener then owns the Object. If there is no registered listener the Transport deletes the command upon receipt.
| command | the received command object. |
Reimplemented from activemq::transport::DefaultTransportListener.
| void activemq::transport::mock::InternalCommandListener::run | ( | ) | [virtual] |
Default implementation of the run method - does nothing.
Reimplemented from decaf::lang::Thread.
| void activemq::transport::mock::InternalCommandListener::setResponseBuilder | ( | const Pointer< ResponseBuilder > | responseBuilder | ) | [inline] |
| void activemq::transport::mock::InternalCommandListener::setTransport | ( | MockTransport * | transport | ) | [inline] |
1.6.1