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, submit
allowCoreThreadTimeOut, 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, toString
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
awaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminated
public 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 Executor
execute
in class ScheduledThreadPoolExecutor
public <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 ThreadPoolExecutor
protected void beforeExecute(Thread t, Runnable r)
beforeExecute
in class ThreadPoolExecutor
public <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.