类 ScxScheduler
java.lang.Object
cool.scx.common.scheduler.ScxScheduler
- 所有已实现的接口:
AutoCloseable,Executor,ExecutorService,ScheduledExecutorService,org.springframework.scheduling.TaskScheduler
public final class ScxScheduler
extends Object
implements ScheduledExecutorService, org.springframework.scheduling.TaskScheduler
- 版本:
- 2.4.8
- 作者:
- scx567888
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明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<R> ScheduledFuture<R> schedule(Consumer<ScheduleStatus> scxHandler, org.springframework.scheduling.Trigger trigger) schedule(Consumer<ScheduleStatus> scxHandler, org.springframework.scheduling.Trigger trigger, long maxRunCount) scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) scheduleAtFixedRate(Runnable task, Duration period) scheduleAtFixedRate(Runnable task, Instant startTime, Duration period) scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, long initialDelay, long period, TimeUnit unit) scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, long initialDelay, long period, TimeUnit unit, long maxRunCount) scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, Duration delay) scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, Duration delay, long maxRunCount) scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay) scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay, long maxRunCount) scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) scheduleWithFixedDelay(Runnable task, Duration delay) scheduleWithFixedDelay(Runnable task, Instant startTime, Duration delay) scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, long initialDelay, long delay, TimeUnit unit) scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, long initialDelay, long delay, TimeUnit unit, long maxRunCount) scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Duration delay) scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Duration delay, long maxRunCount) scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay) scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay, long maxRunCount) voidshutdown()Future<?> <T> Future<T> <R> Future<R> 从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 java.util.concurrent.ExecutorService
close从接口继承的方法 org.springframework.scheduling.TaskScheduler
getClock, schedule, scheduleAtFixedRate, scheduleAtFixedRate, scheduleWithFixedDelay, scheduleWithFixedDelay
-
构造器详细资料
-
ScxScheduler
-
-
方法详细资料
-
schedule
- 指定者:
schedule在接口中org.springframework.scheduling.TaskScheduler
-
schedule
- 指定者:
schedule在接口中org.springframework.scheduling.TaskScheduler
-
scheduleAtFixedRate
- 指定者:
scheduleAtFixedRate在接口中org.springframework.scheduling.TaskScheduler
-
scheduleAtFixedRate
- 指定者:
scheduleAtFixedRate在接口中org.springframework.scheduling.TaskScheduler
-
scheduleWithFixedDelay
- 指定者:
scheduleWithFixedDelay在接口中org.springframework.scheduling.TaskScheduler
-
scheduleWithFixedDelay
- 指定者:
scheduleWithFixedDelay在接口中org.springframework.scheduling.TaskScheduler
-
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) -
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
public ScheduledFuture<?> schedule(Consumer<ScheduleStatus> scxHandler, org.springframework.scheduling.Trigger trigger) -
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay) -
scheduleAtFixedRate
-
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay) -
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Duration delay) -
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, long initialDelay, long period, TimeUnit unit) -
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, long initialDelay, long delay, TimeUnit unit) -
schedule
public ScheduledFuture<?> schedule(Consumer<ScheduleStatus> scxHandler, org.springframework.scheduling.Trigger trigger, long maxRunCount) -
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay, long maxRunCount) -
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, Duration delay, long maxRunCount) -
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Instant startTime, Duration delay, long maxRunCount) -
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, Duration delay, long maxRunCount) -
scheduleAtFixedRate
public ScheduledFuture<?> scheduleAtFixedRate(Consumer<ScheduleStatus> scxHandler, long initialDelay, long period, TimeUnit unit, long maxRunCount) -
scheduleWithFixedDelay
public ScheduledFuture<?> scheduleWithFixedDelay(Consumer<ScheduleStatus> scxHandler, long initialDelay, long delay, TimeUnit unit, long maxRunCount)
-