activemq-cpp-3.6.0
activemq::transport::TransportListener Class Reference

A listener of asynchronous exceptions from a command transport object. More...

#include <src/main/activemq/transport/TransportListener.h>

Inheritance diagram for activemq::transport::TransportListener:

Public Member Functions

virtual ~TransportListener ()
virtual void onCommand (const Pointer< Command > command)=0
 Event handler for the receipt of a command.
virtual void onException (const decaf::lang::Exception &ex)=0
 Event handler for an exception from a command transport.
virtual void transportInterrupted ()=0
 The transport has suffered an interruption from which it hopes to recover.
virtual void transportResumed ()=0
 The transport has resumed after an interruption.

Detailed Description

A listener of asynchronous exceptions from a command transport object.

Constructor & Destructor Documentation

virtual activemq::transport::TransportListener::~TransportListener ( )
inlinevirtual

Member Function Documentation

virtual void activemq::transport::TransportListener::onCommand ( const Pointer< Command command)
pure 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
commandThe received command object.

Implemented in activemq::core::ActiveMQConnection, activemq::transport::TransportFilter, activemq::transport::correlator::ResponseCorrelator, activemq::wireformat::openwire::OpenWireFormatNegotiator, activemq::transport::mock::InternalCommandListener, activemq::transport::inactivity::InactivityMonitor, activemq::transport::failover::FailoverTransportListener, activemq::transport::DefaultTransportListener, and activemq::transport::logging::LoggingTransport.

virtual void activemq::transport::TransportListener::onException ( const decaf::lang::Exception ex)
pure virtual
virtual void activemq::transport::TransportListener::transportInterrupted ( )
pure virtual
virtual void activemq::transport::TransportListener::transportResumed ( )
pure virtual

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