@RequestScoped public class AsyncRetryClient extends Object
Constructor and Description |
---|
AsyncRetryClient() |
Modifier and Type | Method and Description |
---|---|
int |
getCountInvocationsServA() |
int |
getCountInvocationsServBFailException() |
int |
getCountInvocationsServBFailExceptionally() |
int |
getCountInvocationsServC() |
int |
getCountInvocationsServD() |
int |
getCountInvocationsServE() |
int |
getCountInvocationsServF() |
int |
getCountInvocationsServG() |
int |
getCountInvocationsServH() |
CompletionStage<String> |
serviceA()
Service will retry a method returning a CompletionStage and configured to always completeExceptionally.
|
CompletionStage<String> |
serviceBFailException(CompletionStage future)
Service will retry a method returning a CompletionStage and configured to always completeExceptionally.
|
CompletionStage<String> |
serviceBFailExceptionally(CompletionStage future)
Service will retry a method returning a CompletionStage and configured to always completeExceptionally.
|
CompletionStage<String> |
serviceC()
Service will retry a method returning a CompletionStage and configured to completeExceptionally twice.
|
CompletionStage<String> |
serviceD()
Service will retry a method returning a chained, running sequentially, CompletionStage configured to
completeExceptionally twice.
|
CompletionStage<String> |
serviceE()
Service will retry a method returning a chained, running sequentially, CompletionStage configured to
completeExceptionally on all calls.
|
CompletionStage<String> |
serviceF()
Service will retry a method returning a parallel execution of 2 CompletionStages.
|
CompletionStage<String> |
serviceG()
Service will retry a method returning a parallel execution of 2 CompletionStages.
|
CompletionStage<String> |
serviceH()
Service will retry a method returning CompletionStages but throwing an exception.
|
@Asynchronous @Retry(maxRetries=2) public CompletionStage<String> serviceA()
CompletionStage
@Retry(maxRetries=2) public CompletionStage<String> serviceBFailExceptionally(CompletionStage future)
CompletionStage
@Retry(maxRetries=2) public CompletionStage<String> serviceBFailException(CompletionStage future)
CompletionStage
@Asynchronous @Retry(maxRetries=3) public CompletionStage<String> serviceC()
CompletionStage
@Asynchronous @Retry(maxRetries=3) public CompletionStage<String> serviceD()
CompletionStage
@Asynchronous @Retry(maxRetries=2) public CompletionStage<String> serviceE()
CompletionStage
@Asynchronous @Retry(maxRetries=3) public CompletionStage<String> serviceF()
CompletionStage
@Asynchronous @Retry(maxRetries=2) public CompletionStage<String> serviceG()
CompletionStage
@Asynchronous @Retry(maxRetries=2) public CompletionStage<String> serviceH()
CompletionStage
public int getCountInvocationsServA()
public int getCountInvocationsServBFailException()
public int getCountInvocationsServBFailExceptionally()
public int getCountInvocationsServC()
public int getCountInvocationsServD()
public int getCountInvocationsServE()
public int getCountInvocationsServF()
public int getCountInvocationsServG()
public int getCountInvocationsServH()
Copyright © 2016 – 2022 Eclipse Foundation. All rights reserved.
Use is subject to license terms.