Scheduled ThreadPool Executor suppressed or stopped after error happen

ScheduledThreadPoolExecutor

Execution periodic

        Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then initialDelay+period, then initialDelay + 2 * period, and so on.

 

Scheduled ThreadPool Executor suppressed when encounters an exception

If any execution of the task encounters an exception, subsequent executions are suppressed. Otherwise, the task will only terminate via cancellation or termination of the executor.

 

Not execute concurrently

If any execution of this task takes longer than its period, then subsequent executions may start late, but will not concurrently execute.

你可能感兴趣的:(Scheduled ThreadPool Executor suppressed or stopped after error happen)