18 #ifndef _ACTIVE_TRANSPORT_FAILOVER_FAILOVERTRANSPORT_H_ 19 #define _ACTIVE_TRANSPORT_FAILOVER_FAILOVERTRANSPORT_H_ 44 class FailoverTransportListener;
45 class BackupTransportPool;
46 class FailoverTransportImpl;
57 FailoverTransportImpl* impl;
77 void reconnect(
bool rebalance);
87 void add(
bool rebalance,
const std::string& uri);
101 virtual void close();
124 virtual bool isConnected()
const;
126 virtual bool isClosed()
const;
128 bool isInitialized()
const;
130 void setInitialized(
bool value);
132 virtual Transport* narrow(
const std::type_info& typeId);
134 virtual std::string getRemoteAddress()
const;
146 virtual bool isPending()
const;
155 virtual bool iterate();
159 long long getTimeout()
const;
161 void setTimeout(
long long value);
163 long long getInitialReconnectDelay()
const;
165 void setInitialReconnectDelay(
long long value);
167 long long getMaxReconnectDelay()
const;
169 void setMaxReconnectDelay(
long long value);
171 long long getBackOffMultiplier()
const;
173 void setBackOffMultiplier(
long long value);
175 bool isUseExponentialBackOff()
const;
177 void setUseExponentialBackOff(
bool value);
179 bool isRandomize()
const;
181 void setRandomize(
bool value);
183 int getMaxReconnectAttempts()
const;
185 void setMaxReconnectAttempts(
int value);
187 int getStartupMaxReconnectAttempts()
const;
189 void setStartupMaxReconnectAttempts(
int value);
191 long long getReconnectDelay()
const;
193 void setReconnectDelay(
long long value);
195 bool isBackup()
const;
197 void setBackup(
bool value);
199 int getBackupPoolSize()
const;
201 void setBackupPoolSize(
int value);
203 bool isTrackMessages()
const;
205 void setTrackMessages(
bool value);
207 bool isTrackTransactionProducers()
const;
209 void setTrackTransactionProducers(
bool value);
211 int getMaxCacheSize()
const;
213 void setMaxCacheSize(
int value);
215 int getMaxPullCacheSize()
const;
217 void setMaxPullCacheSize(
int value);
219 bool isReconnectSupported()
const;
221 void setReconnectSupported(
bool value);
223 bool isUpdateURIsSupported()
const;
225 void setUpdateURIsSupported(
bool value);
227 bool isRebalanceUpdateURIs()
const;
229 void setRebalanceUpdateURIs(
bool rebalanceUpdateURIs);
231 bool isPriorityBackup()
const;
233 void setPriorityBackup(
bool priorityBackup);
235 void setPriorityURIs(
const std::string& priorityURIs);
241 bool isConnectedToPriority()
const;
285 void processNewTransports(
bool rebalance, std::string newTransports);
virtual void setWireFormat(const Pointer< wireformat::WireFormat > wireFormat AMQCPP_UNUSED)
Sets the WireFormat instance to use.
Definition: FailoverTransport.h:114
#define AMQCPP_API
Definition: Config.h:30
Definition: BackupTransportPool.h:43
virtual bool isFaultTolerant() const
Is this Transport fault tolerant, meaning that it will reconnect to a broker on disconnect.
Definition: FailoverTransport.h:120
Definition: Response.h:46
Interface for a transport layer for command objects.
Definition: Transport.h:59
A Composite Transport is a Transport implementation that is composed of several Transports.
Definition: CompositeTransport.h:40
Represents a single task that can be part of a set of Tasks that are contained in a CompositeTaskRunn...
Definition: CompositeTask.h:33
Definition: ConnectionStateTracker.h:41
Utility class used by the Transport to perform the work of responding to events from the active Trans...
Definition: FailoverTransportListener.h:37
This class represents an instance of a URI as defined by RFC 2396.
Definition: URI.h:36
Definition: ThreadingTypes.h:31
Definition: FailoverTransport.h:48
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: CachedConsumer.h:24
Definition: Exception.h:38
An ordered collection (also known as a sequence).
Definition: List.h:47
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
A listener of asynchronous exceptions from a command transport object.
Definition: TransportListener.h:38