Class Dispatcher
java.lang.Object
java.lang.Thread
com.codinglitch.simpleradio.core.central.Executor
com.codinglitch.simpleradio.radio.Dispatcher
- All Implemented Interfaces:
Runnable
Thread to deliver
Messages at a fixed rate to achieve a determined sample rate.-
Nested Class Summary
Nested classes/interfaces inherited from class com.codinglitch.simpleradio.core.central.Executor
Executor.MonitorStateNested classes/interfaces inherited from class java.lang.Thread
Thread.Builder, Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
FieldsFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Methods 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, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, sleep, start, startVirtualThread, stop, suspend, threadId, toString, yield
-
Field Details
-
fatalTime
public static int fatalTime
-
-
Constructor Details
-
Dispatcher
public Dispatcher(net.minecraft.server.MinecraftServer server)
-
-
Method Details
-
run
public void run() -
execute
- Specified by:
executein classExecutor- Throws:
InterruptedException
-
tick
public void tick() -
getFatalTime
public int getFatalTime()- Specified by:
getFatalTimein classExecutor
-
reload
public void reload(long sampleRate) -
open
-