1 #ifndef QPID_CLIENT_FAILOVERMANAGER_H
2 #define QPID_CLIENT_FAILOVERMANAGER_H
64 virtual void execute(
AsyncSession& session,
bool isRetry) = 0;
77 virtual void editUrlList(std::vector<Url>& urls) = 0;
124 enum State {IDLE, CONNECTING, CANT_CONNECT};
127 Connection connection;
128 std::auto_ptr<FailoverListener> failoverListener;
129 ConnectionSettings settings;
130 ReconnectionStrategy* strategy;
133 void attempt(Connection&, ConnectionSettings settings, std::vector<Url> urls);
134 void attempt(Connection&, ConnectionSettings settings);
#define QPID_CLIENT_CLASS_EXTERN
virtual ~ReconnectionStrategy()
Settings for a Connection.
Base class for Qpid runtime exceptions.
Represents a connection to an AMQP broker.
Interface to implement for doing work that can be resumed on failover.
This file was automatically generated from the AMQP specification.
CannotConnectException(const std::string &m)
Utility to manage failover.
#define QPID_CLIENT_EXTERN
A monitor is a condition variable and a mutex.
AMQP 0-10 session API with keyword arguments.