Annotation Interface Ft.Fallback
- Enclosing class:
Ft
The annotated method will fallback to the defined method on failure.
The fallback method must have the same signature (types and number of parameters), or have one additional parameter of
type Throwable to receive the last exception thrown.
When retries fail, fault tolerance adds up to 15 of the most recent intermediate exceptions as
suppressed exceptions to the last failure. Older intermediate
exceptions are discarded.
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
String valueName of the method to fallback to. The method must follow the signature rules defined on this class.- Returns:
- method name on the same instance (can also be a static method)
-
applyOn
-
skipOn
-