public class RetryingTaskExecutor<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BACK_OFF_MULTIPLIER |
static int |
DEFAULT_INITIAL_RETRY_DELAY |
static int |
DEFAULT_MAX_RETRIES |
static long |
DEFAULT_MAX_RETRY_DELAY |
protected T |
objectToReturn |
| Constructor and Description |
|---|
RetryingTaskExecutor(org.apache.maven.plugin.logging.Log log,
int maxRetries) |
RetryingTaskExecutor(long initialRetryDelay,
long maxRetryDelay,
int maxRetries,
long backOffMultiplier,
boolean useExponentialBackOff,
boolean rethrowLastException,
org.apache.maven.plugin.logging.Log log) |
public static final long DEFAULT_MAX_RETRY_DELAY
public static final int DEFAULT_MAX_RETRIES
public static final int DEFAULT_INITIAL_RETRY_DELAY
public static final int DEFAULT_BACK_OFF_MULTIPLIER
protected volatile T objectToReturn
public RetryingTaskExecutor(long initialRetryDelay,
long maxRetryDelay,
int maxRetries,
long backOffMultiplier,
boolean useExponentialBackOff,
boolean rethrowLastException,
org.apache.maven.plugin.logging.Log log)
public RetryingTaskExecutor(org.apache.maven.plugin.logging.Log log,
int maxRetries)
public void runTask(java.util.concurrent.Callable<T> task) throws java.lang.Exception
java.lang.Exceptionpublic void runTask(java.lang.String taskName,
java.util.concurrent.Callable<T> task)
throws java.lang.Exception
java.lang.Exceptionpublic T getObjectToReturn()
Copyright © 2012 Atlassian. All Rights Reserved.