18#ifndef _ACTIVE_TRANSPORT_FAILOVER_BACKUPTRANSPORT_H_
19#define _ACTIVE_TRANSPORT_FAILOVER_BACKUPTRANSPORT_H_
57 BackupTransport(
const BackupTransport&);
58 BackupTransport& operator=(
const BackupTransport&);
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
A Utility class that create empty implementations for the TransportListener interface so that a subcl...
Definition DefaultTransportListener.h:36
bool isClosed() const
Has the Transport been shutdown and no longer usable.
Definition BackupTransport.h:120
virtual void onException(const decaf::lang::Exception &ex)
Event handler for an exception from a command transport.
const Pointer< Transport > & getTransport()
Gets the currently held transport.
Definition BackupTransport.h:85
bool isPriority() const
Definition BackupTransport.h:135
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
decaf::net::URI getUri() const
Gets the URI assigned to this Backup.
Definition BackupTransport.h:70
void setClosed(bool value)
Sets the closed flag on this Transport.
Definition BackupTransport.h:128
BackupTransport(BackupTransportPool *failover)
void setPriority(bool value)
Set if this transport is a Priority backup or not.
Definition BackupTransport.h:145
virtual ~BackupTransport()
void setUri(const decaf::net::URI &uri)
Sets the URI assigned to this Transport.
Definition BackupTransport.h:77
Definition BackupTransportPool.h:43
Definition Exception.h:38
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
This class represents an instance of a URI as defined by RFC 2396.
Definition URI.h:37
#define NULL
Definition Config.h:33
Definition BackupTransport.h:31
Definition AbstractTransportFactory.h:30
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements.
Definition CachedConsumer.h:24