Interface FailoverExecution<T>

Type Parameters:
T - the return type of the protected method
All Known Implementing Classes:
BasicFailoverExecution, ResilienceFailoverExecution

public interface FailoverExecution<T>
Strategy for executing a method call with failover semantics.
Author:
Anand Manissery
  • Method Summary

    Modifier and Type
    Method
    Description
    execute(Failover failover, Supplier<T> supplier, Method method, List<Object> args)
    Executes the given supplier with failover protection.
  • Method Details

    • execute

      T execute(Failover failover, Supplier<T> supplier, Method method, List<Object> args)
      Executes the given supplier with failover protection.
      Parameters:
      failover - annotation metadata for the failover point
      supplier - the actual method invocation to execute
      method - the reflected method, used for logging and type resolution
      args - resolved method arguments
      Returns:
      the result from the supplier, or a recovered value on failure