activemq-cpp-3.3.0

activemq::transport::failover::FailoverTransportListener Class Reference

Utility class used by the Transport to perform the work of responding to events from the active Transport. More...

#include <src/main/activemq/transport/failover/FailoverTransportListener.h>

Inheritance diagram for activemq::transport::failover::FailoverTransportListener:

Public Member Functions

 FailoverTransportListener (FailoverTransport *parent)
virtual ~FailoverTransportListener ()
virtual void onCommand (const Pointer< Command > &command)
 Event handler for the receipt of a command.
virtual void onException (const decaf::lang::Exception &ex)
 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

Utility class used by the Transport to perform the work of responding to events from the active Transport.

Since:
3.0

Constructor & Destructor Documentation

activemq::transport::failover::FailoverTransportListener::FailoverTransportListener ( FailoverTransport parent)
virtual activemq::transport::failover::FailoverTransportListener::~FailoverTransportListener ( ) [virtual]

Member Function Documentation

virtual void activemq::transport::failover::FailoverTransportListener::onCommand ( const Pointer< Command > &  command) [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.

Implements activemq::transport::TransportListener.

virtual void activemq::transport::failover::FailoverTransportListener::onException ( const decaf::lang::Exception ex) [virtual]

Event handler for an exception from a command transport.

Parameters:
exThe exception.

Implements activemq::transport::TransportListener.

virtual void activemq::transport::failover::FailoverTransportListener::transportInterrupted ( ) [virtual]

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

Implements activemq::transport::TransportListener.

virtual void activemq::transport::failover::FailoverTransportListener::transportResumed ( ) [virtual]

The transport has resumed after an interruption.

Implements activemq::transport::TransportListener.


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