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

A Utility class that create empty implementations for the TransportListener interface so that a subclass only needs to override the one's its interested. More...

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

Inheritance diagram for activemq::transport::DefaultTransportListener:

Public Member Functions

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

Detailed Description

A Utility class that create empty implementations for the TransportListener interface so that a subclass only needs to override the one's its interested.

Constructor & Destructor Documentation

virtual activemq::transport::DefaultTransportListener::~DefaultTransportListener ( )
virtual

Member Function Documentation

virtual void activemq::transport::DefaultTransportListener::onCommand ( const Pointer< Command > command  AMQCPP_UNUSED)
inlinevirtual

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.

Implements activemq::transport::TransportListener.

Reimplemented in activemq::transport::mock::InternalCommandListener.

virtual void activemq::transport::DefaultTransportListener::onException ( const decaf::lang::Exception &ex  AMQCPP_UNUSED)
inlinevirtual

Event handler for an exception from a command transport.

Parameters
exThe exception.
virtual void activemq::transport::DefaultTransportListener::transportInterrupted ( )
inlinevirtual

The transport has suffered an interruption from which it hopes to recover.

Implements activemq::transport::TransportListener.

virtual void activemq::transport::DefaultTransportListener::transportResumed ( )
inlinevirtual

The transport has resumed after an interruption.

Implements activemq::transport::TransportListener.


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