Class ManualScheduler
- java.lang.Object
-
- com.github.kagkarlsson.scheduler.Scheduler
-
- com.github.kagkarlsson.scheduler.testhelper.ManualScheduler
-
- All Implemented Interfaces:
SchedulerClient
public class ManualScheduler extends Scheduler
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.github.kagkarlsson.scheduler.SchedulerClient
SchedulerClient.Builder, SchedulerClient.ScheduleOptions, SchedulerClient.SchedulerClientName, SchedulerClient.StandardSchedulerClient
-
-
Field Summary
-
Fields inherited from class com.github.kagkarlsson.scheduler.Scheduler
executeDueStrategy, executor, onStartup, THREAD_PREFIX, TRIGGER_NEXT_BATCH_WHEN_AVAILABLE_THREADS_RATIO
-
Fields inherited from interface com.github.kagkarlsson.scheduler.SchedulerClient
DEFAULT_BATCH_SIZE
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SettableClockgetClock()voidrunAnyDueExecutions()voidrunDeadExecutionDetection()voidsetTime(Instant newtime)voidstart()voidtick(Duration moveClockForward)-
Methods inherited from class com.github.kagkarlsson.scheduler.Scheduler
cancel, create, create, detectDeadExecutions, executeDue, executeOnStartup, fetchScheduledExecutions, fetchScheduledExecutions, fetchScheduledExecutionsForTask, fetchScheduledExecutionsForTask, getCurrentlyExecuting, getCurrentlyExecutingWithStaleHeartbeat, getFailingExecutions, getScheduledExecution, getSchedulerState, pause, registerSchedulerListener, reschedule, reschedule, reschedule, resume, schedule, schedule, schedule, schedule, scheduleBatch, scheduleBatch, scheduleIfNotExists, scheduleIfNotExists, stop, triggerCheckForDueExecutions, updateHeartbeatForExecution
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.kagkarlsson.scheduler.SchedulerClient
getScheduledExecutions, getScheduledExecutions, getScheduledExecutionsForTask, getScheduledExecutionsForTask, getScheduledExecutionsForTask, scheduleBatch, scheduleBatch
-
-
-
-
Method Detail
-
getClock
public SettableClock getClock()
-
tick
public void tick(Duration moveClockForward)
-
setTime
public void setTime(Instant newtime)
-
runAnyDueExecutions
public void runAnyDueExecutions()
-
runDeadExecutionDetection
public void runDeadExecutionDetection()
-
-