public class RetryLoop extends Object
Constructor and Description |
---|
RetryLoop(RetryPolicy retryPolicy,
AtomicReference<TracerDriver> tracer) |
Modifier and Type | Method and Description |
---|---|
static RetrySleeper |
getDefaultRetrySleeper() |
static boolean |
isRetryException(Throwable exception) |
void |
markComplete() |
boolean |
shouldContinue() |
static boolean |
shouldRetry(int rc) |
void |
takeException(Exception exception) |
public RetryLoop(RetryPolicy retryPolicy, AtomicReference<TracerDriver> tracer)
public static RetrySleeper getDefaultRetrySleeper()
public static boolean shouldRetry(int rc)
public static boolean isRetryException(Throwable exception)
public boolean shouldContinue()
public void markComplete()
Copyright © 2016. All Rights Reserved.