Interface GrpcConfig.Retries
- Enclosing interface:
- GrpcConfig
public static interface GrpcConfig.Retries
-
Method Details
-
enabled
@WithDefault("true") boolean enabled()- Returns:
- If call retries are enabled.
-
policy
@WithDefault("status-codes") @NotNull @Pattern(regexp="status-codes|custom") @NotNull @Pattern(regexp="status-codes|custom") String policy()What type of retry policy to use.status-codes- based on status codes (seeStatusCodesRetryPredicate}custom- allows configuring custom policy
- Returns:
- The type of the
GrpcRetryPredicateused.
-
statusCodes
- Returns:
- Set of status codes to execute retries for. Defaults to
UNAVAILABLE, as this code means that the request never reached the bridge or C* responded with Unavailable exception, thus it should be safe to retry.
-
maxAttempts
@WithDefault("1") @Positive @jakarta.validation.constraints.Positive int maxAttempts()- Returns:
- Maximum amount of retry attempts.
-