ExecutorService.execute()
Posted 点滴
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ExecutorService.execute()相关的知识,希望对你有一定的参考价值。
-
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 theExecutor
implementation.- Parameters:
command
- the runnable task- Throws:
RejectedExecutionException
- if this task cannot be accepted for executionNullPointerException
- if command is null
以上是关于ExecutorService.execute()的主要内容,如果未能解决你的问题,请参考以下文章