java.lang.Object
com.tlcsdm.core.concurrent.VerboseScheduledExecutorService
- 所有已实现的接口:
AutoCloseable,Executor,ExecutorService,ScheduledExecutorService
By default, an executor service will swallow exceptions.
It's pretty annoying when debugging if you ignore the Future
so this will log every exception.
ScheduledExecutorService scheduledExecutorService = Executors.newScheduledThreadPool(3, new LogUncaughtExceptionThreadFactory());
new VerboseScheduledExecutorService(scheduledExecutorService);
ScheduledExecutorService executorService = new VerboseScheduledExecutorService(Executors.newScheduledThreadPool(8));
- 作者:
- unknowIfGuestInDream
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanawaitTermination(long timeout, TimeUnit unit) voidinvokeAll(Collection<? extends Callable<T>> tasks) invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) <T> TinvokeAny(Collection<? extends Callable<T>> tasks) <T> TinvokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) booleanboolean<V> ScheduledFuture<V> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) voidshutdown()Future<?> <T> Future<T> <T> Future<T> 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.util.concurrent.ExecutorService
close
-
字段详细资料
-
executor
-
-
构造器详细资料
-
VerboseScheduledExecutorService
-
-
方法详细资料
-
shutdown
public void shutdown()- 指定者:
shutdown在接口中ExecutorService
-
shutdownNow
- 指定者:
shutdownNow在接口中ExecutorService
-
isShutdown
public boolean isShutdown()- 指定者:
isShutdown在接口中ExecutorService
-
isTerminated
public boolean isTerminated()- 指定者:
isTerminated在接口中ExecutorService
-
awaitTermination
- 指定者:
awaitTermination在接口中ExecutorService- 抛出:
InterruptedException
-
submit
- 指定者:
submit在接口中ExecutorService
-
submit
- 指定者:
submit在接口中ExecutorService
-
submit
- 指定者:
submit在接口中ExecutorService
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) throws InterruptedException - 指定者:
invokeAll在接口中ExecutorService- 抛出:
InterruptedException
-
invokeAll
public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException - 指定者:
invokeAll在接口中ExecutorService- 抛出:
InterruptedException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks) throws InterruptedException, ExecutionException - 指定者:
invokeAny在接口中ExecutorService- 抛出:
InterruptedExceptionExecutionException
-
invokeAny
public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException -
execute
-
schedule
- 指定者:
schedule在接口中ScheduledExecutorService
-
schedule
- 指定者:
schedule在接口中ScheduledExecutorService
-
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) - 指定者:
scheduleAtFixedRate在接口中ScheduledExecutorService
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
-