- Enclosing class:
Ft
The annotated method (or all methods on annotated type) will be retried according to the configuration.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionThese throwables will be considered retriable.int
Number of calls (first try + retries).Duration to delay Defaults to200
milliseconds.double
Delay retry policy factor.Jitter forRetry.JitterRetryPolicy
.If named, an attempt will be made to find a namedRetry
instance in service registry.Duration of overall timeout.These throwables will not be considered retriable, all other will.
-
Element Details
-
name
String nameIf named, an attempt will be made to find a namedRetry
instance in service registry. If not found, a new retry will be created based on values on this annotation.- Returns:
- name of this retry
- Default:
""
-
calls
int callsNumber of calls (first try + retries).- Returns:
- number of desired calls, must be 1 (means no retries) or higher.
- Default:
3
-
delay
String delayDuration to delay Defaults to200
milliseconds.- Returns:
- duration to delay, such as
PT1S
(1 second) - See Also:
- Default:
"PT0.2S"
-
delayFactor
double delayFactorDelay retry policy factor. If unspecified (value of-1
), Jitter retry policy would be used, unless jitter time is also unspecified.Default when
Retry.DelayingRetryPolicy
is used is2
.- Returns:
- delay factor for delaying retry policy
- Default:
-1.0
-
jitter
String jitterJitter forRetry.JitterRetryPolicy
. If unspecified (value of-1
), delaying retry policy is used. If both this value, anddelayFactor()
are specified, delaying retry policy would be used.- Returns:
- jitter duration
- See Also:
- Default:
"PT-1S"
-
overallTimeout
String overallTimeoutDuration of overall timeout. Defaults toPT1S
(1 second).- Returns:
- duration of overall timeout
- Default:
"PT1S"
-
applyOn
These throwables will be considered retriable.- Returns:
- throwable classes to trigger retries
- See Also:
- Default:
{}
-
skipOn
These throwables will not be considered retriable, all other will.- Returns:
- throwable classes to skip retries
- See Also:
- Default:
{}
-