| java.lang.Object com.caucho.server.util.ScheduledThreadPool
Method Summary | |
public boolean | awaitTermination(long timeout, TimeUnit unit) Blocks until the tasks complete. | public void | environmentConfig(EnvironmentClassLoader loader) | public void | environmentStart(EnvironmentClassLoader loader) Called when the environment starts. | public void | environmentStop(EnvironmentClassLoader loader) Called when the environment stops. | public void | execute(Runnable command) Launches a thread to execute a command. | public static ScheduledThreadPool | getLocal() | public Timer | getTimer() Returns the Timer for this pool. | public List | invokeAll(Collection tasks) Invokes a set of tasks. | public List | invokeAll(Collection tasks, long timeout, TimeUnit unit) Invokes a set of tasks. | public Object | invokeAny(Collection tasks) Invokes a set of tasks. | public Object | invokeAny(Collection tasks, long timeout, TimeUnit unit) Invokes a set of tasks. | public boolean | isShutdown() Return true if the executor is shut down. | public boolean | isTerminated() Return true if the executor has completed shutting down. | void | removeFuture(Future future) | public ScheduledFuture<V> | schedule(Callable<V> callable, long delay, TimeUnit unit) Schedules a future task. | public ScheduledFuture> | schedule(Runnable command, long delay, TimeUnit unit) Schedules a future task. | public ScheduledFuture> | scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) Schedules a future task. | public ScheduledFuture> | scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) | public void | shutdown() Starts the shutdown. | public List<Runnable> | shutdownNow() Starts the shutdown. | public Future<T> | submit(Callable<T> task) Submits a task for execution. | public Future> | submit(Runnable command) Submits a task for execution. | public Future<T> | submit(Runnable task, T result) Submits a task for execution. | public String | toString() | public Object | writeReplace() |
awaitTermination | public boolean awaitTermination(long timeout, TimeUnit unit)(Code) | | Blocks until the tasks complete.
|
execute | public void execute(Runnable command)(Code) | | Launches a thread to execute a command.
|
getTimer | public Timer getTimer()(Code) | | Returns the Timer for this pool.
|
isShutdown | public boolean isShutdown()(Code) | | Return true if the executor is shut down.
|
isTerminated | public boolean isTerminated()(Code) | | Return true if the executor has completed shutting down.
|
shutdown | public void shutdown()(Code) | | Starts the shutdown.
|
writeReplace | public Object writeReplace()(Code) | | Serialize to a webbeans handle
|
|
|