|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RetryableCallable<V>
Interface for callables that may need to be retried if unsuccessful.
| Field Summary | |
|---|---|
static int |
NO_MORE_RETRIES
Special return value for getRetryDelay indicating no further retries should be attempted. |
| Method Summary | |
|---|---|
long |
getRetryDelay()
Get the number of milliseconds we should wait until the next retry. |
void |
onComplete(boolean successful,
java.lang.Object result)
Invoked when the execution of a retryable is complete. |
void |
onExecutionException(java.util.concurrent.ExecutionException exception)
Method called whenever an execution exception occurs while running the call() method. |
| Methods inherited from interface java.util.concurrent.Callable |
|---|
call |
| Field Detail |
|---|
static final int NO_MORE_RETRIES
| Method Detail |
|---|
long getRetryDelay()
void onExecutionException(java.util.concurrent.ExecutionException exception)
exception - exception that occured
void onComplete(boolean successful,
java.lang.Object result)
successful - if true, the execution was successfulresult - if this execution wasn't successful, the result will be
a CompositeExecutorException itemizing the result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||