org.apache.qpid.client.failover
Interface FailoverSupport<T,E extends Exception>
- All Known Implementing Classes:
- FailoverNoopSupport, FailoverRetrySupport
public interface FailoverSupport<T,E extends Exception>
FailoverSupport defines an interface for different types of fail-over handlers, that provide different types of
behaviour for handling fail-overs during operations that can be interrupted by the fail-over process. For example,
the support could automatically retry once the fail-over process completes, could prevent an operation from being
started whilst fail-over is running, or could quietly abandon the operation or raise an exception, and so on.
CRC Card
Responsibilities
|
---|
Perform a fail-over protected operation with handling for fail-over conditions.
|
- Todo:
- Continuation, extend some sort of re-usable Continuation interface, which might look very like this one.
Method Summary |
T |
execute()
Delegates to another continuation which is to be provided with fail-over handling. |
execute
T execute()
throws E extends Exception
- Delegates to another continuation which is to be provided with fail-over handling.
- Returns:
- The return value from the delegated to continuation.
- Throws:
E
- Any exception that the delegated to continuation may raise.
E extends Exception
Licensed to the Apache Software Foundation