activemq-cpp-3.6.0
activemq::transport::mock::ResponseBuilder Class Reference

Interface for all Protocols to implement that defines the behavior of the Broker in response to messages of that protocol. More...

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

Inheritance diagram for activemq::transport::mock::ResponseBuilder:

Public Member Functions

virtual ~ResponseBuilder ()
virtual Pointer< ResponsebuildResponse (const Pointer< Command > command)=0
 Given a Command, check if it requires a response and return the appropriate Response that the Broker would send for this Command.
virtual void buildIncomingCommands (const Pointer< Command > command, decaf::util::LinkedList< Pointer< Command > > &queue)=0
 When called the ResponseBuilder must construct all the Responses or Asynchronous commands that would be sent to this client by the Broker upon receipt of the passed command.

Detailed Description

Interface for all Protocols to implement that defines the behavior of the Broker in response to messages of that protocol.

Constructor & Destructor Documentation

virtual activemq::transport::mock::ResponseBuilder::~ResponseBuilder ( )
virtual

Member Function Documentation

virtual void activemq::transport::mock::ResponseBuilder::buildIncomingCommands ( const Pointer< Command command,
decaf::util::LinkedList< Pointer< Command > > &  queue 
)
pure virtual

When called the ResponseBuilder must construct all the Responses or Asynchronous commands that would be sent to this client by the Broker upon receipt of the passed command.

Parameters
command- The Command being sent to the Broker.
queue- Queue of Command sent back from the broker.

Implemented in activemq::wireformat::openwire::OpenWireResponseBuilder.

virtual Pointer<Response> activemq::transport::mock::ResponseBuilder::buildResponse ( const Pointer< Command command)
pure virtual

Given a Command, check if it requires a response and return the appropriate Response that the Broker would send for this Command.

Parameters
command- The command to build a response for
Returns
A Response object pointer, or NULL if no response.

Implemented in activemq::wireformat::openwire::OpenWireResponseBuilder.


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