R - result typepublic class Listeners<R> extends Object
| Constructor and Description |
|---|
Listeners() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAbort(R result,
Throwable failure)
Called when an execution is aborted.
|
void |
onAbort(R result,
Throwable failure,
ExecutionContext context)
Called when an execution is aborted.
|
void |
onComplete(R result,
Throwable failure)
Called when an execution is completed.
|
void |
onComplete(R result,
Throwable failure,
ExecutionContext context)
Called when an execution is completed.
|
void |
onFailedAttempt(R result,
Throwable failure)
Called when an execution attempt fails.
|
void |
onFailedAttempt(R result,
Throwable failure,
ExecutionContext context)
Called when an execution attempt fails.
|
void |
onFailure(R result,
Throwable failure)
Called when an execution fails and cannot be retried.
|
void |
onFailure(R result,
Throwable failure,
ExecutionContext context)
Called when an execution fails and cannot be retried.
|
void |
onRetriesExceeded(R result,
Throwable failure)
Called when an execution fails and the
max retry attempts or
max duration are exceeded. |
void |
onRetry(R result,
Throwable failure)
Called before an execution is retried.
|
void |
onRetry(R result,
Throwable failure,
ExecutionContext context)
Called before an execution is retried.
|
void |
onSuccess(R result)
Called when an execution is successful.
|
void |
onSuccess(R result,
ExecutionContext context)
Called when an execution is successful.
|
public void onAbort(R result, Throwable failure, ExecutionContext context)
public void onComplete(R result, Throwable failure)
public void onComplete(R result, Throwable failure, ExecutionContext context)
public void onFailedAttempt(R result, Throwable failure)
public void onFailedAttempt(R result, Throwable failure, ExecutionContext context)
public void onFailure(R result, Throwable failure)
public void onFailure(R result, Throwable failure, ExecutionContext context)
public void onRetriesExceeded(R result, Throwable failure)
max retry attempts or
max duration are exceeded.public void onRetry(R result, Throwable failure, ExecutionContext context)
public void onSuccess(R result)
public void onSuccess(R result, ExecutionContext context)
Copyright © 2017. All Rights Reserved.