Class RetryClassLevelClientRetryOn

java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.retry.clientserver.RetryClassLevelClientRetryOn

@RequestScoped @Retry(retryOn=TestException.class, maxRetries=3) public class RetryClassLevelClientRetryOn extends Object
A client to demonstrate the specification of retryOn conditions at the Class level.
Author:
Emily Jiang
  • Constructor Details

    • RetryClassLevelClientRetryOn

      public RetryClassLevelClientRetryOn()
  • Method Details

    • serviceA

      public Connection serviceA()
    • getRetryCountForConnectionService

      public int getRetryCountForConnectionService()
    • serviceB

      @Retry(retryOn=java.io.IOException.class) public void serviceB()
      serviceB is configured to retry on an IOException. In practice the only exception that will be thrown by the WritingService is a TestException.
    • getRetryCountForWritingService

      public int getRetryCountForWritingService()