public class JobEntry extends Object
| Constructor and Description |
|---|
JobEntry(String key,
Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> mainWorker,
RollbackCallable rollbackWorker,
int maxRetries) |
| Modifier and Type | Method and Description |
|---|---|
int |
decrementRetryCountAndGet() |
List<com.google.common.util.concurrent.ListenableFuture<Void>> |
getFutures() |
String |
getKey()
Get the key provided by the application that segregates the
callables that can be run parallely.
|
Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> |
getMainWorker() |
int |
getRetryCount() |
RollbackCallable |
getRollbackWorker() |
void |
setFutures(List<com.google.common.util.concurrent.ListenableFuture<Void>> futures) |
void |
setMainWorker(Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> mainWorker) |
String |
toString() |
public JobEntry(String key, Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> mainWorker, RollbackCallable rollbackWorker, int maxRetries)
public String getKey()
public Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> getMainWorker()
public void setMainWorker(Callable<List<com.google.common.util.concurrent.ListenableFuture<Void>>> mainWorker)
public RollbackCallable getRollbackWorker()
public int getRetryCount()
public int decrementRetryCountAndGet()
public void setFutures(List<com.google.common.util.concurrent.ListenableFuture<Void>> futures)
Copyright © 2018 OpenDaylight. All rights reserved.