Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation |
Interface to implement for doing work that can be resumed on failover. More...
#include <qpid/client/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 () |
Interface to implement for doing work that can be resumed on failover.
Definition at line 52 of file FailoverManager.h.
virtual qpid::client::FailoverManager::Command::~Command | ( | ) | [inline, virtual] |
Definition at line 65 of file FailoverManager.h.
virtual void qpid::client::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.