public abstract class RetryJob<V> extends Object implements Runnable
| Modifier and Type | Field and Description |
|---|---|
protected AsyncRetryContext |
context |
protected com.google.common.util.concurrent.SettableFuture<V> |
future |
protected AsyncRetryExecutor |
parent |
| Constructor and Description |
|---|
RetryJob(AsyncRetryContext context,
AsyncRetryExecutor parent,
com.google.common.util.concurrent.SettableFuture<V> future) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
complete(V result,
long duration) |
com.google.common.util.concurrent.ListenableFuture<V> |
getFuture() |
protected void |
handleManualAbort(AbortRetryException abortEx) |
protected void |
handleThrowable(Throwable t,
long duration) |
protected void |
handleUserThrowable(Throwable t,
long duration) |
protected void |
logAbort(RetryContext context) |
protected void |
logFailure(AsyncRetryContext nextRetryContext,
long duration) |
protected void |
logRetry(AsyncRetryContext nextRetryContext,
long delay,
long duration) |
protected void |
logSuccess(RetryContext context,
V result,
long duration) |
protected abstract RetryJob<V> |
nextTask(AsyncRetryContext nextRetryContext) |
void |
run() |
protected abstract void |
run(long startTime) |
protected final com.google.common.util.concurrent.SettableFuture<V> future
protected final AsyncRetryContext context
protected final AsyncRetryExecutor parent
public RetryJob(AsyncRetryContext context, AsyncRetryExecutor parent, com.google.common.util.concurrent.SettableFuture<V> future)
protected void logSuccess(RetryContext context, V result, long duration)
protected void handleManualAbort(AbortRetryException abortEx)
protected void logAbort(RetryContext context)
protected void handleThrowable(Throwable t, long duration)
protected void handleUserThrowable(Throwable t, long duration)
protected void logFailure(AsyncRetryContext nextRetryContext, long duration)
protected void logRetry(AsyncRetryContext nextRetryContext, long delay, long duration)
protected abstract void run(long startTime)
protected abstract RetryJob<V> nextTask(AsyncRetryContext nextRetryContext)
protected void complete(V result, long duration)
public com.google.common.util.concurrent.ListenableFuture<V> getFuture()
Copyright © 2014. All rights reserved.