Creates a Future and schedules the operation to run after the given delay.
Creates a Future and schedules the operation to run after the given delay.
duration for which to delay execution
a Future to capture the signal that napTime is over
RejectedExecutionException
if the task cannot be
scheduled for execution
A single threaded executor for tasks scheduled in the future
IllegalArgumentException
if { @code corePoolSize < 0}NullPointerException
if { @code threadFactory} or { @code handler} is null