java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.illegalConfig.FallbackMethodClient

@RequestScoped public class FallbackMethodClient extends Object
A client to demonstrate the fallback after doing retries
Author:
Neil Young
  • Constructor Details

    • FallbackMethodClient

      public FallbackMethodClient()
  • Method Details

    • serviceB

      @Retry(maxRetries=4) @Fallback(fallbackMethod="fallbackForServiceB") public Integer serviceB()
      Retry 5 times and then fallback
      Returns:
      a dummy number
    • fallbackForServiceB

      public String fallbackForServiceB()
      Fallback method with incompatible signature, different return type
      Returns:
      dummy string