java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.disableEnv.DisableClient

@RequestScoped public class DisableClient extends Object
A client to determine the impact of the MP_Fault_Tolerance_NonFallback_Enabled environment variable
Author:
Neil Young
  • Constructor Details

    • DisableClient

      public DisableClient()
  • Method Details

    • serviceA

      @Retry(maxRetries=1) public Connection serviceA()
      Invokes connection service and increases the counter for invocations the connection service
      Returns:
      Always throws exception
    • serviceB

      Invokes name service and increases the counter for invocations of serviceB
      Returns:
      Always throws exception
    • serviceC

      Invokes connection service and increases the counter for invocations of serviceC and connection service
      Returns:
      Always throws exception
    • serviceD

      @Timeout public Connection serviceD(long timeToSleep)
      serviceD uses the default Fault Tolerance timeout of 1 second.
      Parameters:
      timeToSleep - How long should the execution take in millis
      Returns:
      null or exception is raised
    • getRetryCountForConnectionService

      public int getRetryCountForConnectionService()
    • getCounterForInvokingServiceB

      public int getCounterForInvokingServiceB()
    • getCounterForInvokingServiceC

      public int getCounterForInvokingServiceC()