Class StatusCodesRetryPredicate

java.lang.Object
io.stargate.sgv2.api.common.grpc.retries.impl.StatusCodesRetryPredicate
All Implemented Interfaces:
GrpcRetryPredicate, Predicate<io.grpc.StatusRuntimeException>

public class StatusCodesRetryPredicate extends Object implements GrpcRetryPredicate
GrpcRetryPredicate based on status code matching.
  • Constructor Details

    • StatusCodesRetryPredicate

      public StatusCodesRetryPredicate(Set<io.grpc.Status.Code> statusCodes)
  • Method Details

    • test

      public boolean test(io.grpc.StatusRuntimeException e)
      Specified by:
      test in interface Predicate<io.grpc.StatusRuntimeException>