Package civitas.celestis.task.lifecycle
Class SyncScheduler
java.lang.Object
java.lang.Thread
civitas.celestis.task.lifecycle.SchedulerThread
civitas.celestis.task.lifecycle.SyncScheduler
A synchronous scheduler with one processing thread, (the scheduler itself)
one list of tasks, and one map of execution times. All core logic is inherited
from
SchedulerThread.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.BuilderPREVIEW, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new synchronous scheduler.SyncScheduler(PrintStream printStream) Creates a new synchronous scheduler. -
Method Summary
Methods inherited from class civitas.celestis.task.lifecycle.SchedulerThread
initialize, register, registerAsync, registerSync, terminate, unregister, unregisterMethods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, isVirtual, join, join, join, join, ofPlatform, ofVirtual, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Constructor Details
-
SyncScheduler
public SyncScheduler()Creates a new synchronous scheduler. -
SyncScheduler
Creates a new synchronous scheduler.- Parameters:
printStream- The print stream to print error messages to
-