public class ManagedScheduledThreadPoolExecutor extends ScheduledThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| Constructor and Description |
|---|
ManagedScheduledThreadPoolExecutor(int corePoolSize) |
ManagedScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler) |
ManagedScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory) |
ManagedScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler) |
decorateTask, decorateTask, getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, schedule, schedule, scheduleAtFixedRate, scheduleWithFixedDelay, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submitallowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, finalize, getActiveCount, getCompletedTaskCount, getCorePoolSize, getKeepAliveTime, getLargestPoolSize, getMaximumPoolSize, getPoolSize, getRejectedExecutionHandler, getTaskCount, getThreadFactory, isShutdown, isTerminated, isTerminating, prestartAllCoreThreads, prestartCoreThread, purge, remove, setCorePoolSize, setKeepAliveTime, setMaximumPoolSize, setRejectedExecutionHandler, setThreadFactory, terminated, toStringinvokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskForclone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic ManagedScheduledThreadPoolExecutor(int corePoolSize)
public ManagedScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory)
public ManagedScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler)
public ManagedScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler)
public void setThreadLifeTime(long threadLifeTime)
public void execute(Runnable command)
execute in interface Executorexecute in class ScheduledThreadPoolExecutorpublic <V> ScheduledFuture<V> schedule(AbstractManagedExecutorService executor, Runnable command, V result, long delay, TimeUnit unit)
public <V> ScheduledFuture<V> schedule(AbstractManagedExecutorService executor, Callable<V> callable, long delay, TimeUnit unit)
public ScheduledFuture<?> schedule(AbstractManagedExecutorService executor, Runnable command, javax.enterprise.concurrent.Trigger trigger)
public <V> ScheduledFuture<V> schedule(AbstractManagedExecutorService executor, Callable<V> callable, javax.enterprise.concurrent.Trigger trigger)
public ScheduledFuture<?> scheduleAtFixedRate(AbstractManagedExecutorService executor, Runnable command, long initialDelay, long period, TimeUnit unit)
public ScheduledFuture<?> scheduleWithFixedDelay(AbstractManagedExecutorService executor, Runnable command, long initialDelay, long delay, TimeUnit unit)
protected void afterExecute(Runnable r, Throwable t)
afterExecute in class ThreadPoolExecutorprotected void beforeExecute(Thread t, Runnable r)
beforeExecute in class ThreadPoolExecutorpublic <V> ManagedFutureTask<V> newTaskFor(AbstractManagedExecutorService executor, Runnable r, V result)
public ManagedFutureTask newTaskFor(AbstractManagedExecutorService executor, Callable callable)
public void executeManagedTask(ManagedFutureTask task)
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.