org.apache.qpid.client.failover
Interface FailoverProtectedOperation<T,E extends Exception>


public interface FailoverProtectedOperation<T,E extends Exception>

FailoverProtectedOperation is a continuation for an operation that may throw a FailoverException because it has been interrupted by the fail-over process. The FailoverRetrySupport class defines support wrappers for failover protected operations, in order to provide different handling schemes when failovers occurr.

The type of checked exception that the operation may perform has been generified, in order that fail over protected operations can be defined that raise arbitrary exceptions. The actuall exception types used should not be sub-classes of FailoverException, or else catching FailoverException in the FailoverRetrySupport classes will mask the exception.

CRC Card
Responsibilities
Perform an operation that may be interrupted by fail-over.


Method Summary
 T execute()
          Performs the continuations work.
 

Method Detail

execute

T execute()
          throws E extends Exception,
                 FailoverException
Performs the continuations work.

Returns:
Provdes scope for the continuation to return an arbitrary value.
Throws:
FailoverException - If the operation is interrupted by a fail-over notification.
E extends Exception


Licensed to the Apache Software Foundation