@RequestScoped public class FallbackClient extends Object
Constructor and Description |
---|
FallbackClient() |
Modifier and Type | Method and Description |
---|---|
String |
fallbackForServiceD() |
String |
fallbackForServiceE(String name,
Integer type) |
int |
getCounterForInvokingServiceA() |
int |
getCounterForInvokingServiceB() |
int |
getCounterForInvokingServiceC() |
int |
getCounterForInvokingServiceD() |
int |
getCounterForInvokingServiceE() |
String |
serviceA() |
String |
serviceB() |
String |
serviceC(long timeToSleep) |
String |
serviceD() |
String |
serviceE(String name,
Integer type) |
public int getCounterForInvokingServiceA()
public int getCounterForInvokingServiceB()
public int getCounterForInvokingServiceC()
public int getCounterForInvokingServiceD()
public int getCounterForInvokingServiceE()
@Retry(maxRetries=1) @Fallback(value=StringFallbackHandler.class) public String serviceA()
@Retry(maxRetries=2) @Fallback(value=StringFallbackHandler.class) public String serviceB()
@Timeout(value=500L) @Retry(maxRetries=1) @Fallback(value=StringFallbackHandler.class) public String serviceC(long timeToSleep)
@Retry(maxRetries=1) @Fallback(fallbackMethod="fallbackForServiceD") public String serviceD()
public String fallbackForServiceD()
@Retry(maxRetries=1) @Fallback(fallbackMethod="fallbackForServiceE") public String serviceE(String name, Integer type)
Copyright © 2020 Eclipse Foundation. All rights reserved.