Package | Description |
---|---|
net.jodah.sarge | |
net.jodah.sarge.util |
Modifier and Type | Method and Description |
---|---|
static Directive |
Directive.Retry(int maxRetries,
Duration retryWindow)
Retries the method invocation.
|
static Directive |
Directive.Retry(int maxRetries,
Duration retryWindow,
Duration initialRetryInterval,
double backoffExponent,
Duration maxRetryInterval)
Retries the method invocation.
|
PlanMaker |
PlanMaker.retryOn(Class<? extends Throwable>[] causeTypes,
int maxRetries,
Duration retryWindow)
Perform a retry when a failure of any of the
causeTypes occurs, retrying up to
maxRetries times within the retryWindow with zero wait time between retries. |
static PlanMaker |
Plans.retryOn(Class<? extends Throwable>[] causeTypes,
int maxRetries,
Duration timeRange)
Perform a retry when a failure of any of the
causeTypes occurs, retrying up to
maxRetries times within the timeRange with zero wait time between retries. |
PlanMaker |
PlanMaker.retryOn(Class<? extends Throwable>[] causeTypes,
int maxRetries,
Duration retryWindow,
Duration initialRetryInterval,
Duration maxRetryInterval)
Perform a retry when a failure of any of the
causeTypes occurs, retrying up to
maxRetries times within the retryWindow , backing off and waiting between each
retry up to maxRetryInterval . |
static PlanMaker |
Plans.retryOn(Class<? extends Throwable>[] causeTypes,
int maxRetries,
Duration retryWindow,
Duration initialRetryInterval,
Duration maxRetryInterval)
Perform a retry when a failure of any of the
causeTypes occurs, retrying up to
maxRetries times within the retryWindow , backing off and waiting between each
retry up to maxRetryInterval . |
PlanMaker |
PlanMaker.retryOn(Class<? extends Throwable> causeType,
int maxRetries,
Duration retryWindow)
Create a retry when a failure of
causeType occurs, retrying up to maxRetries
times within the retryWindow with zero wait time between retries. |
static PlanMaker |
Plans.retryOn(Class<? extends Throwable> causeType,
int maxRetries,
Duration retryWindow)
Create a retry when a failure of
causeType occurs, retrying up to maxRetries
times within the retryWindow with zero wait time between retries. |
PlanMaker |
PlanMaker.retryOn(Class<? extends Throwable> causeType,
int maxRetries,
Duration retryWindow,
Duration initialRetryInterval,
double backoffExponent,
Duration maxRetryInterval)
Performs a retry when a failure of
causeType occurs, retrying up to maxRetries
times within the retryWindow , backing off and waiting between each retry according to
the backoffExponent up to maxRetryInterval . |
static PlanMaker |
Plans.retryOn(Class<? extends Throwable> causeType,
int maxRetries,
Duration retryWindow,
Duration initialRetryInterval,
double backoffExponent,
Duration maxRetryInterval)
Performs a retry when a failure of
causeType occurs, retrying up to maxRetries
times within the retryWindow , backing off and waiting between each retry according to
the backoffExponent up to maxRetryInterval . |
PlanMaker |
PlanMaker.retryOn(Class<? extends Throwable> causeType,
int maxRetries,
Duration retryWindow,
Duration initialRetryInterval,
Duration maxRetryInterval)
Performs a retry when a failure of
causeType occurs, retrying up to maxRetries
times within the retryWindow , backing off and waiting between each retry up to
maxRetryInterval . |
static PlanMaker |
Plans.retryOn(Class<? extends Throwable> causeType,
int maxRetries,
Duration retryWindow,
Duration initialRetryInterval,
Duration maxRetryInterval)
Performs a retry when a failure of
causeType occurs, retrying up to maxRetries
times within the retryWindow , backing off and waiting between each retry up to
maxRetryInterval . |
Modifier and Type | Method and Description |
---|---|
static Duration |
Duration.days(long count) |
static Duration |
Duration.hours(long count) |
static Duration |
Duration.inf() |
static Duration |
Duration.infinite() |
static Duration |
Duration.microseconds(long count) |
static Duration |
Duration.millis(long count) |
static Duration |
Duration.milliseconds(long count) |
static Duration |
Duration.mins(long count) |
static Duration |
Duration.minutes(long count) |
static Duration |
Duration.nanos(long count) |
static Duration |
Duration.nanoseconds(long count) |
static Duration |
Duration.of(long count,
TimeUnit unit) |
static Duration |
Duration.of(String duration) |
static Duration |
Duration.seconds(long count) |
static Duration |
Duration.secs(long count) |
Copyright © 2019. All rights reserved.