public class Recurrent<T> extends Object
RetryPolicy.| Constructor and Description |
|---|
Recurrent() |
| Modifier and Type | Method and Description |
|---|---|
static SyncRecurrent |
with(RetryPolicy retryPolicy)
Creates and returns a new SyncRecurrent instance that will perform executions and retries synchronously according
to the
retryPolicy. |
static AsyncRecurrent |
with(RetryPolicy retryPolicy,
ScheduledExecutorService executor)
Creates and returns a new AsyncRecurrent instance that will perform executions and retries asynchronously via the
executor according to the retryPolicy. |
static AsyncRecurrent |
with(RetryPolicy retryPolicy,
Scheduler scheduler)
Creates and returns a new AsyncRecurrent instance that will perform executions and retries asynchronously via the
scheduler according to the retryPolicy. |
public static SyncRecurrent with(RetryPolicy retryPolicy)
retryPolicy.NullPointerException - if retryPolicy is nullpublic static AsyncRecurrent with(RetryPolicy retryPolicy, ScheduledExecutorService executor)
executor according to the retryPolicy.NullPointerException - if retryPolicy or executor are nullpublic static AsyncRecurrent with(RetryPolicy retryPolicy, Scheduler scheduler)
scheduler according to the retryPolicy.NullPointerException - if retryPolicy or scheduler are nullCopyright © 2016. All Rights Reserved.