public class WrappingScheduledThreadPoolExecutor extends ScheduledThreadPoolExecutor
ThreadPoolExecutor.AbortPolicy, ThreadPoolExecutor.CallerRunsPolicy, ThreadPoolExecutor.DiscardOldestPolicy, ThreadPoolExecutor.DiscardPolicy| 构造器和说明 |
|---|
WrappingScheduledThreadPoolExecutor(int corePoolSize) |
WrappingScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler) |
WrappingScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory) |
WrappingScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <V> RunnableScheduledFuture<V> |
decorateTask(Callable<V> callable,
RunnableScheduledFuture<V> task) |
protected <V> RunnableScheduledFuture<V> |
decorateTask(Runnable runnable,
RunnableScheduledFuture<V> task) |
void |
execute(Runnable command) |
WrappingTaskFactory |
getWrappedTaskFactory() |
protected <T> RunnableFuture<T> |
newTaskFor(Callable<T> callable) |
protected <T> RunnableFuture<T> |
newTaskFor(Runnable runnable,
T value) |
<V> ScheduledFuture<V> |
schedule(Callable<V> callable,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleAtFixedRate(Runnable command,
long initialDelay,
long period,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
void |
setWrappedTaskFactory(WrappingTaskFactory wrappedTaskFactory) |
getContinueExistingPeriodicTasksAfterShutdownPolicy, getExecuteExistingDelayedTasksAfterShutdownPolicy, getQueue, getRemoveOnCancelPolicy, setContinueExistingPeriodicTasksAfterShutdownPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setRemoveOnCancelPolicy, shutdown, shutdownNow, submit, submit, submitafterExecute, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, awaitTermination, beforeExecute, 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, invokeAnyawaitTermination, invokeAll, invokeAll, invokeAny, invokeAny, isShutdown, isTerminatedpublic WrappingScheduledThreadPoolExecutor(int corePoolSize)
public WrappingScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory)
public WrappingScheduledThreadPoolExecutor(int corePoolSize,
RejectedExecutionHandler handler)
public WrappingScheduledThreadPoolExecutor(int corePoolSize,
ThreadFactory threadFactory,
RejectedExecutionHandler handler)
public WrappingTaskFactory getWrappedTaskFactory()
public void setWrappedTaskFactory(WrappingTaskFactory wrappedTaskFactory)
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule 在接口中 ScheduledExecutorServiceschedule 在类中 ScheduledThreadPoolExecutorpublic <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule 在接口中 ScheduledExecutorServiceschedule 在类中 ScheduledThreadPoolExecutorpublic ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
public void execute(Runnable command)
execute 在接口中 Executorexecute 在类中 ScheduledThreadPoolExecutorprotected <V> RunnableScheduledFuture<V> decorateTask(Runnable runnable, RunnableScheduledFuture<V> task)
protected <V> RunnableScheduledFuture<V> decorateTask(Callable<V> callable, RunnableScheduledFuture<V> task)
protected <T> RunnableFuture<T> newTaskFor(Runnable runnable, T value)
newTaskFor 在类中 AbstractExecutorServiceprotected <T> RunnableFuture<T> newTaskFor(Callable<T> callable)
newTaskFor 在类中 AbstractExecutorServiceCopyright © 2025 fossc. All rights reserved.