Interface FailurePolicy<R>

Type Parameters:
R - result type
All Superinterfaces:
Policy<R>
All Known Implementing Classes:
CircuitBreakerImpl, FallbackImpl, RetryPolicyImpl

public interface FailurePolicy<R> extends Policy<R>
A policy that can handle specifically configured failures.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the policy config.
    default boolean
    isFailure(R result, Throwable exception)
    Returns whether an execution result or exception are considered a failure according to the policy configuration.

    Methods inherited from interface dev.failsafe.Policy

    toExecutor