📅  最后修改于: 2022-03-11 14:52:49.101000             🧑  作者: Mango
public void executeTask() {
executorService = Executors.newSingleThreadExecutor();
Future future = executorService.submit(new EventLoggingTask());
executorService.shutdown();
}