qpid::client::FailoverManager::Command Struct Reference

Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET | Apache Qpid Documentation

- Main Page
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions
qpid::client::FailoverManager::Command Struct Reference

Interface to implement for doing work that can be resumed on failover. More...

`#include <qpid/client/FailoverManager.h>`

List of all members.

## 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 ()

## Detailed Description

Interface to implement for doing work that can be resumed on failover.

## Constructor & Destructor Documentation

virtual qpid::client::FailoverManager::Command::~Command | ( |  | ) | `[inline, virtual]`

Definition at line 65 of file FailoverManager.h.

## Member Function Documentation

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.

The documentation for this struct was generated from the following file:

- qpid/client/FailoverManager.h