Annotation Interface Retry
Declares bounded retry metadata for a service method.
Retries are attempted only when runtime policy allows them and the method is safe to retry. Non-idempotent methods must not be automatically retried simply because this annotation is present.
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionintReturns the maximum retry attempts.Returns the exact trusted-host retry policy name.
-
Element Details
-
maxAttempts
int maxAttemptsReturns the maximum retry attempts.- Returns:
- maximum attempts after the initial call
- Default:
0
-
policy
String policyReturns the exact trusted-host retry policy name. The annotation never installs a policy.- Returns:
- policy identifier; default selects the host's explicitly registered default profile
- Default:
"default"
-