activemq::transport::mock::InternalCommandListener Class Reference

Listens for Commands sent from the MockTransport. More...

#include <src/main/activemq/transport/mock/InternalCommandListener.h>

Inheritance diagram for activemq::transport::mock::InternalCommandListener:
Inheritance graph
[legend]

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.

Detailed Description

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.


Constructor & Destructor Documentation

activemq::transport::mock::InternalCommandListener::InternalCommandListener (  ) 
virtual activemq::transport::mock::InternalCommandListener::~InternalCommandListener (  )  [virtual]

Member Function Documentation

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.

Parameters:
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]

The documentation for this class was generated from the following file:

Generated on 1 Dec 2014 for activemq-cpp-3.8.2 by  doxygen 1.6.1