Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
#include <FailoverManager.h>
Public Member Functions | |
virtual void | execute (AsyncSession &session, bool isRetry)=0 |
This method will be called with isRetry=false when the command is first executed. | |
virtual | ~Command () |
Definition at line 51 of file FailoverManager.h.
virtual qpid::client::FailoverManager::FailoverManager::Command::~Command | ( | ) | [inline, virtual] |
Definition at line 64 of file FailoverManager.h.
virtual void qpid::client::FailoverManager::FailoverManager::Command::execute | ( | AsyncSession & | session, | |
bool | isRetry | |||
) | [pure virtual] |
This method will be called with isRetry=false when the command is first executed.
The session to use for the work will be passed to the implementing class. If the connection fails while the execute call is in progress, the FailoverManager controlling the execution will re-establish a connection, open a new session and call back to the Command implementations execute method with the new session and isRetry=true.