Lifecycle.SingleUse
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 |
---|---|
void |
execute(java.lang.Runnable command,
long timeout,
java.util.concurrent.TimeUnit unit)
Executes the given command at some time in the future.
|
java.lang.String |
getName() |
addLifecycleListener, destroy, findLifecycleListeners, getState, getStateName, init, removeLifecycleListener, start, stop
java.lang.String getName()
void execute(java.lang.Runnable command, long timeout, java.util.concurrent.TimeUnit unit)
command
- the runnable taskjava.util.concurrent.RejectedExecutionException
- if this task
cannot be accepted for execution - the queue is fulljava.lang.NullPointerException
- if command or unit is nullCopyright © 2000-2018 Apache Software Foundation. All Rights Reserved.