@RequestScoped public class FallbackMethodWithArgsClient extends Object
Constructor and Description |
---|
FallbackMethodWithArgsClient() |
Modifier and Type | Method and Description |
---|---|
Integer |
fallbackForServiceB(String name)
Fallback method with incompatible signature, only one parameter
|
Integer |
serviceB(String name,
Integer type)
Retry 5 times and then fallback
|
@Retry(maxRetries=4) @Fallback(fallbackMethod="fallbackForServiceB") public Integer serviceB(String name, Integer type)
name
- a stringtype
- an IntegerCopyright © 2016 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.