Sho SHIMIZU
Committed by Gerrit Code Review

Refactor: Use CompletableFuture instead of Executor#execute()

Change-Id: I97a155498e01c43d8adc83a55dbc2022732c862d
......@@ -316,7 +316,7 @@ public class IntentManager
log.trace("Execute operations: {}", operations);
// batchExecutor is single-threaded, so only one batch is in flight at a time
batchExecutor.execute(() -> {
CompletableFuture.runAsync(() -> {
try {
/*
1. wrap each intentdata in a runnable and submit
......@@ -350,7 +350,7 @@ public class IntentManager
// batchService.removeIntentOperations(data);
}
accumulator.ready();
});
}, batchExecutor);
}
}
......