Extending Failsafe

Failsafe provides a Service Provider Interface (SPI) that allows you to implement a custom Scheduler or Policy which you can plug into Failsafe.

Custom Policies

Failsafe Policy implementations contain the necessary configuration to handle executions in a certain way. The actual execution handling is done by a corresponding PolicyExecutor implementation, which each Policy provides. The PolicyExecutor is responsible for performing any pre-execution behavior and post-execution handling of a result or failure.

The PolicyExecutor class along with the existing PolicyExecutor implementations are a good reference for creating additional implementations.