Class Retrier
java.lang.Object
com.here.platform.data.client.utils.Retrier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A> scala.concurrent.Future<A>apply(RetryStrategy strategy, scala.Function1<Object, scala.concurrent.Future<A>> attempt, scala.concurrent.ExecutionContext executionContext, org.apache.pekko.actor.Scheduler scheduler, org.apache.pekko.event.LoggingAdapter log, RetryContext retryContext) static <A> scala.concurrent.Future<A>apply(RetryStrategy strategy, scala.Option<scala.concurrent.duration.FiniteDuration> maxWaitingTimeBetweenRetries, scala.Function1<Object, scala.concurrent.Future<A>> attempt, scala.concurrent.ExecutionContext executionContext, org.apache.pekko.actor.Scheduler scheduler, org.apache.pekko.event.LoggingAdapter log, RetryContext retryContext) static <A> scala.concurrent.Future<A>withExplicitRetryCondition(RetryStrategy strategy, scala.Option<scala.concurrent.duration.FiniteDuration> maxWaitingTimeBetweenRetries, scala.Function1<Object, scala.concurrent.Future<A>> attempt, scala.PartialFunction<scala.util.Try<A>, Object> shouldRetry, scala.concurrent.ExecutionContext executionContext, org.apache.pekko.actor.Scheduler scheduler, org.apache.pekko.event.LoggingAdapter log, RetryContext retryContext)
-
Constructor Details
-
Retrier
public Retrier()
-
-
Method Details
-
failedWithRetriableHttpException
-
apply
public static <A> scala.concurrent.Future<A> apply(RetryStrategy strategy, scala.Function1<Object, scala.concurrent.Future<A>> attempt, scala.concurrent.ExecutionContext executionContext, org.apache.pekko.actor.Scheduler scheduler, org.apache.pekko.event.LoggingAdapter log, RetryContext retryContext) -
apply
public static <A> scala.concurrent.Future<A> apply(RetryStrategy strategy, scala.Option<scala.concurrent.duration.FiniteDuration> maxWaitingTimeBetweenRetries, scala.Function1<Object, scala.concurrent.Future<A>> attempt, scala.concurrent.ExecutionContext executionContext, org.apache.pekko.actor.Scheduler scheduler, org.apache.pekko.event.LoggingAdapter log, RetryContext retryContext) -
withExplicitRetryCondition
public static <A> scala.concurrent.Future<A> withExplicitRetryCondition(RetryStrategy strategy, scala.Option<scala.concurrent.duration.FiniteDuration> maxWaitingTimeBetweenRetries, scala.Function1<Object, scala.concurrent.Future<A>> attempt, scala.PartialFunction<scala.util.Try<A>, Object> shouldRetry, scala.concurrent.ExecutionContext executionContext, org.apache.pekko.actor.Scheduler scheduler, org.apache.pekko.event.LoggingAdapter log, RetryContext retryContext)
-