18 #ifndef _ACTIVE_TRANSPORT_FAILOVER_BACKUPTRANSPORT_H_ 19 #define _ACTIVE_TRANSPORT_FAILOVER_BACKUPTRANSPORT_H_ 97 this->transport = transport;
99 if (this->transport !=
NULL) {
100 this->transport->setTransportListener(
this);
129 this->closed = value;
136 return this->priority;
146 this->priority = value;
#define AMQCPP_API
Definition: Config.h:30
#define NULL
Definition: Config.h:33
Definition: BackupTransportPool.h:43
void setPriority(bool value)
Set if this transport is a Priority backup or not.
Definition: BackupTransport.h:145
decaf::net::URI getUri() const
Gets the URI assigned to this Backup.
Definition: BackupTransport.h:70
void setTransport(const Pointer< Transport > transport)
Sets the held transport, if not NULL then start to listen for exceptions from the held transport...
Definition: BackupTransport.h:96
const Pointer< Transport > & getTransport()
Gets the currently held transport.
Definition: BackupTransport.h:85
void setUri(const decaf::net::URI &uri)
Sets the URI assigned to this Transport.
Definition: BackupTransport.h:77
This class represents an instance of a URI as defined by RFC 2396.
Definition: URI.h:36
bool isPriority() const
Definition: BackupTransport.h:135
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Definition: Exception.h:38
Definition: BackupTransport.h:37
bool isClosed() const
Has the Transport been shutdown and no longer usable.
Definition: BackupTransport.h:120
A Utility class that create empty implementations for the TransportListener interface so that a subcl...
Definition: DefaultTransportListener.h:36
Decaf's implementation of a Smart Pointer that is a template on a Type and is Thread Safe if the defa...
Definition: Pointer.h:53
void setClosed(bool value)
Sets the closed flag on this Transport.
Definition: BackupTransport.h:128