use of org.openkilda.floodlight.command.PendingCommandSubmitter in project open-kilda by telstra.
the class CommandProcessorService method verifyPendingStatus.
private void verifyPendingStatus() {
LinkedList<ProcessorTask> checkList = rotatePendingCommands();
if (checkList.size() == 0) {
return;
}
try {
CommandContext context = commandContextFactory.produce();
VerifyBatch verifyBatch = new VerifyBatch(this, checkList);
PendingCommandSubmitter checkCommands = new PendingCommandSubmitter(context, verifyBatch);
processLazy(checkCommands);
} catch (Throwable e) {
synchronized (this) {
tasks.addAll(checkList);
}
throw e;
}
}
Aggregations