AFTER_DESTROY_EVENT, AFTER_INIT_EVENT, AFTER_START_EVENT, AFTER_STOP_EVENT, BEFORE_DESTROY_EVENT, BEFORE_INIT_EVENT, BEFORE_START_EVENT, BEFORE_STOP_EVENT, CONFIGURE_START_EVENT, CONFIGURE_STOP_EVENT, PERIODIC_EVENT, START_EVENT, STOP_EVENT
|Modifier and Type||Method and Description|
Executes the given command at some time in the future.
Executorimplementation. If no threads are available, it will be added to the work queue. If the work queue is full, the system will wait for the specified time until it throws a RejectedExecutionException
command- the runnable task
timeout- the length of time to wait for the task to complete
unit- the units in which timeout is expressed
RejectedExecutionException- if this task cannot be accepted for execution - the queue is full
NullPointerException- if command or unit is null
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.