Interface FailurePolicy<T>

    • Method Detail

      • defaultPolicy

        static <U> FailurePolicy<U> defaultPolicy()
        The default policy, which considers an asynchronous result as a failure if AsyncResult.failed() returns true.
      • test

        boolean test​(Future<T> future)
        Invoked by the CircuitBreaker when an operation completes.
        Specified by:
        test in interface Predicate<T>
        Parameters:
        future - a completed future
        Returns:
        true if the asynchronous result should be considered as a failure, false otherwise