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 
posted @ 2016-07-02 15:56  薛晓东  阅读(2480)  评论(0编辑  收藏  举报