ExecutorService.execute()

Posted 点滴

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ExecutorService.execute()相关的知识,希望对你有一定的参考价值。

Open Declaration void java.util.concurrent.Executor.execute(Runnable command)

 

 

  • execute

    void execute(Runnable command)
    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 Executor implementation.
    Parameters:
    command - the runnable task
    Throws:
    RejectedExecutionException - if this task cannot be accepted for execution
    NullPointerException - if command is null 

以上是关于ExecutorService.execute()的主要内容,如果未能解决你的问题,请参考以下文章

线程异步处理

线程池框架

如何在多线程中使用spring事务

Spring Boot Async异步执行

Spring Boot Async异步执行任务