public class WrappedScheduledExecutorService extends Object implements ScheduledExecutorService, WrappedScheduledExecutorServiceMBean
| 构造器和说明 |
|---|
WrappedScheduledExecutorService(ScheduledExecutorService service,
String mbeanName) |
public WrappedScheduledExecutorService(ScheduledExecutorService service, String mbeanName)
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
schedule 在接口中 ScheduledExecutorServicepublic <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit)
schedule 在接口中 ScheduledExecutorServicepublic ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit)
scheduleAtFixedRate 在接口中 ScheduledExecutorServicepublic ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
public void shutdown()
shutdown 在接口中 ExecutorServicepublic List<Runnable> shutdownNow()
shutdownNow 在接口中 ExecutorServicepublic boolean isShutdown()
isShutdown 在接口中 ExecutorServicepublic boolean isTerminated()
isTerminated 在接口中 ExecutorServicepublic boolean awaitTermination(long timeout,
TimeUnit unit)
throws InterruptedException
awaitTermination 在接口中 ExecutorServiceInterruptedExceptionpublic <T> Future<T> submit(Callable<T> task)
submit 在接口中 ExecutorServicepublic <T> Future<T> submit(Runnable task, T result)
submit 在接口中 ExecutorServicepublic Future<?> submit(Runnable task)
submit 在接口中 ExecutorServicepublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException
invokeAll 在接口中 ExecutorServiceInterruptedExceptionpublic <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException
invokeAll 在接口中 ExecutorServiceInterruptedExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException
invokeAny 在接口中 ExecutorServiceInterruptedExceptionExecutionExceptionpublic <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
public int getCorePoolSize()
getCorePoolSize 在接口中 IThreadPoolMBeanpublic boolean prestartCoreThread()
prestartCoreThread 在接口中 IThreadPoolMBeanpublic int getMaximumPoolSize()
getMaximumPoolSize 在接口中 IThreadPoolMBeanpublic Queue<Runnable> getQueue()
getQueue 在接口中 IThreadPoolMBeanpublic int getPoolSize()
getPoolSize 在接口中 IThreadPoolMBeanpublic int getActiveCount()
getActiveCount 在接口中 IThreadPoolMBeanpublic int getLargestPoolSize()
getLargestPoolSize 在接口中 IThreadPoolMBeanpublic long getTaskCount()
getTaskCount 在接口中 IThreadPoolMBeanpublic long getCompletedTaskCount()
getCompletedTaskCount 在接口中 IThreadPoolMBeanpublic int getQueueLength()
getQueueLength 在接口中 IThreadPoolMBeanCopyright © 2022 The Apache Software Foundation. All rights reserved.