MicroProfile Fault Tolerance in action

As we just discussed, the Fault Tolerance specification provides a set of annotations that you have to apply on a class or method to enforce Fault Tolerance policies. That being said, you have to keep in mind that these annotations are interceptors binding and hence are only usable on CDI beans. So, be careful to define your class as CDI beans before applying Fault Tolerance annotations on them or their methods.

In the following sections, you'll find usage examples for each Fault Tolerance annotation.