Interface GrpcConfig.Retries

Enclosing interface:
GrpcConfig

public static interface GrpcConfig.Retries
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    @javax.validation.constraints.Positive int
     
    @NotNull List<io.grpc.Status.Code>
     
  • Method Details

    • enabled

      @WithDefault("true") boolean enabled()
      Returns:
      If call retries are enabled.
    • statusCodes

      @WithDefault("UNAVAILABLE") @NotNull @NotNull List<io.grpc.Status.Code> statusCodes()
      Returns:
      List of status codes to execute retries for. Defaults to UNAVAILABLE, as this code means that the request never reached the bridge and it should be safe to retry.
    • maxAttempts

      @WithDefault("1") @Positive @javax.validation.constraints.Positive int maxAttempts()
      Returns:
      Maximum amount of retry attempts.