You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@Retry(retryOn = TimeoutException.class,
maxRetries = 4,
maxDuration = 10,
durationUnit = ChronoUnit.SECONDS,
delay = 200, delayUnit = ChronoUnit.MILLIS)
@Timeout(2000)
public Service showTransactions() throws Exception {
Service transactions = new Transactions();
transactions.getTransactions();
return transactions;
}
The above method should have Asynchronous annotation to make it the timeout within 2s instead of waiting for the method to return and then throw TimeoutException. Once adding that annotation, the return type needs to be CompletionStage<Service>.
The text was updated successfully, but these errors were encountered:
I'm not sure it is within the scope of our interactive guide to make any changes here. It would require adding another annotation here, @asynchronous, which would involve adding to the content of the doc and would retract from the focus of the guide, which is on the @timeout and @Retry annotations.
Sent a note to Lavena on 2/11. Waiting for further discussion on changes for this guide.
In the following code sample,
The above method should have
Asynchronous
annotation to make it the timeout within 2s instead of waiting for the method to return and then throw TimeoutException. Once adding that annotation, the return type needs to beCompletionStage<Service>
.The text was updated successfully, but these errors were encountered: