#include <src/main/activemq/transport/failover/BackupTransport.h>
Constructor & Destructor Documentation
activemq::transport::failover::BackupTransport::BackupTransport |
( |
BackupTransportPool * |
failover | ) |
|
virtual activemq::transport::failover::BackupTransport::~BackupTransport |
( |
| ) |
|
|
virtual |
Member Function Documentation
Gets the currently held transport.
- Returns
- pointer to the held transport or NULL if not set.
decaf::net::URI activemq::transport::failover::BackupTransport::getUri |
( |
| ) |
const |
|
inline |
Gets the URI assigned to this Backup.
- Returns
- the assigned URI
bool activemq::transport::failover::BackupTransport::isClosed |
( |
| ) |
const |
|
inline |
bool activemq::transport::failover::BackupTransport::isPriority |
( |
| ) |
const |
|
inline |
- Returns
- true if this transport was in the priority backup list.
Event handler for an exception from a command transport.
The BackupTransport closes its internal Transport when an exception is received and returns the URI to the pool of URIs to attempt connections to.
- Parameters
-
ex | The exception that was passed to this listener to handle. |
Implements activemq::transport::TransportListener.
void activemq::transport::failover::BackupTransport::setClosed |
( |
bool |
value | ) |
|
|
inline |
Sets the closed flag on this Transport.
- Parameters
-
void activemq::transport::failover::BackupTransport::setPriority |
( |
bool |
value | ) |
|
|
inline |
Set if this transport is a Priority backup or not.
- Parameters
-
value | True if this is a priority backup. |
void activemq::transport::failover::BackupTransport::setTransport |
( |
const Pointer< Transport > |
transport | ) |
|
|
inline |
Sets the held transport, if not NULL then start to listen for exceptions from the held transport.
- Parameters
-
transport | The transport to hold. |
References NULL.
The documentation for this class was generated from the following file: