public interface FailoverProtectedOperation<T,E extends Exception>
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.
Modifier and Type | Method and Description |
---|---|
T |
execute()
Performs the continuations work.
|
T execute() throws E extends Exception, FailoverException
FailoverException
- If the operation is interrupted by a fail-over notification.E extends Exception
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.