Retryable class
Retries the method with a fixed backoff when it throws (spring-retry's
@Retryable).
maxAttempts is the total number of attempts (Spring-like, default 3).
retryOn limits retries to the listed exception types (subtypes match);
empty retries on anything. When composed with @Transactional, each
attempt runs in a fresh transaction.
- Annotations
-
- @Target.new({TargetKind.method})
Constructors
Properties
- backoffMs → int
-
Fixed delay between attempts, in milliseconds. Must be >= 0.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- maxAttempts → int
-
Total attempts, first call included. Must be >= 1.
final
-
retryOn
→ List<
Type> -
Exception types worth retrying (empty = all).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited