#include <src/main/activemq/transport/failover/BackupTransport.h>
◆ BackupTransport()
| activemq::transport::failover::BackupTransport::BackupTransport |
( |
BackupTransportPool * |
failover | ) |
|
◆ ~BackupTransport()
| virtual activemq::transport::failover::BackupTransport::~BackupTransport |
( |
| ) |
|
|
virtual |
◆ getTransport()
Gets the currently held transport.
- Returns
- pointer to the held transport or NULL if not set.
◆ getUri()
| decaf::net::URI activemq::transport::failover::BackupTransport::getUri |
( |
| ) |
const |
|
inline |
Gets the URI assigned to this Backup.
- Returns
- the assigned URI
◆ isClosed()
| bool activemq::transport::failover::BackupTransport::isClosed |
( |
| ) |
const |
|
inline |
◆ isPriority()
| bool activemq::transport::failover::BackupTransport::isPriority |
( |
| ) |
const |
|
inline |
- Returns
- true if this transport was in the priority backup list.
◆ onException()
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.
◆ setClosed()
| void activemq::transport::failover::BackupTransport::setClosed |
( |
bool |
value | ) |
|
|
inline |
Sets the closed flag on this Transport.
- Parameters
-
◆ setPriority()
| 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. |
◆ setTransport()
| 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.
◆ setUri()
The documentation for this class was generated from the following file: