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:
Inheritance graph
[legend]

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.

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  )  [inline, 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.

Implements activemq::transport::TransportListener.

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

virtual void activemq::transport::DefaultTransportListener::onException ( const decaf::lang::Exception &ex  AMQCPP_UNUSED  )  [inline, virtual]

Event handler for an exception from a command transport.

Parameters:
ex The exception.
virtual void activemq::transport::DefaultTransportListener::transportInterrupted (  )  [inline, virtual]

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

Implements activemq::transport::TransportListener.

virtual void activemq::transport::DefaultTransportListener::transportResumed (  )  [inline, virtual]

The transport has resumed after an interruption.

Implements activemq::transport::TransportListener.


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