聊聊flink的ScheduledExecutor
序 本文主要研究一下flink的ScheduledExecutor Executor java.base/java/util/concurrent/Executor.java public interface Executor { /** * Executes the given command at some time in the future. The command * may execute in a new thread, in a pooled thread, or in the calling * thread, at the discretion of the {@code Executor} implementation. * * @param command the runnable task * @throws RejectedExecutionException if this task cannot be * accepted for execution * @throws NullPointerException if command is null */ void execute(Runnable command); } jdk的Executor接口定义了execute方法,接收参数类型为Runnable ScheduledExecutor