Class FallbackMethodWithArgsClient
java.lang.Object
org.eclipse.microprofile.fault.tolerance.tck.illegalConfig.FallbackMethodWithArgsClient
A client to demonstrate the fallback after doing retries
- Author:
- Neil Young
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
FallbackMethodWithArgsClient
public FallbackMethodWithArgsClient()
-
-
Method Details
-
serviceB
@Retry(maxRetries=4) @Fallback(fallbackMethod="fallbackForServiceB") public Integer serviceB(String name, Integer type) Retry 5 times and then fallback- Parameters:
name
- a stringtype
- an Integer- Returns:
- a dummy number
-
fallbackForServiceB
Fallback method with incompatible signature, only one parameter- Parameters:
name
- a string- Returns:
- a dummy number
-