| Package | Description |
|---|---|
| net.jodah.recurrent | |
| net.jodah.recurrent.event |
| Modifier and Type | Class and Description |
|---|---|
class |
AsyncInvocation
Tracks asynchronous invocations and allows retries to be scheduled according to a
RetryPolicy. |
class |
Invocation
Tracks invocations and determines when an invocation can be performed for a
RetryPolicy. |
| Modifier and Type | Method and Description |
|---|---|
T |
ContextualCallable.call(InvocationStats stats) |
void |
Listeners.onComplete(T result,
Throwable failure,
InvocationStats stats)
Called when an invocation is completed.
|
void |
Listeners.onFailedAttempt(T result,
Throwable failure,
InvocationStats stats)
Called after a failed attempt.
|
void |
Listeners.onFailure(T result,
Throwable failure,
InvocationStats stats)
Called after the retry policy is exceeded and the result is a failure.
|
void |
Listeners.onRetry(T result,
Throwable failure,
InvocationStats stats)
Called before a retry is attempted.
|
void |
Listeners.onSuccess(T result,
InvocationStats stats)
Called after a successful invocation.
|
void |
ContextualRunnable.run(InvocationStats stats) |
| Modifier and Type | Method and Description |
|---|---|
void |
ContextualResultListener.onResult(R result,
F failure,
InvocationStats stats)
Handles an invocation result.
|
void |
ContextualSuccessListener.onSuccess(R result,
InvocationStats stats)
Handles the successful completion of a call.
|
Copyright © 2016. All Rights Reserved.