Class RetryStrategy

java.lang.Object
io.deephaven.util.RetryStrategy

public class RetryStrategy extends Object
Utility class to support execution of gRPC requests with a retry strategy.
  • Field Details

  • Constructor Details

    • RetryStrategy

      public RetryStrategy(Predicate<io.deephaven.shadow.core.io.grpc.Status> doRetryPred, RetryBackoffContext.Exponential.Params params)
      Create a new retry strategy.
      Parameters:
      doRetryPred - The predicate that, based on a gRPC Status object, will decide whether to retry or not. It is a common case to only retry for Status.UNAVAILABLE, but more general strategies are possible.
      params - Parameters for the retry strategy