public class VanillaEventLoop extends MediumEventLoop
| Modifier and Type | Field and Description |
|---|---|
static Set<net.openhft.chronicle.core.threads.HandlerPriority> |
ALLOWED_PRIORITIES |
daemon, highHandler, loopStartNS, mediumHandlers, mediumHandlersArray, newHandlers, NO_CPU, NO_EVENT_HANDLERS, parent, pauser, service, threadnameclosedHere, DISABLE_DISCARD_WARNING, WARN_NSNOT_IN_A_LOOP| Constructor and Description |
|---|
VanillaEventLoop(@Nullable net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
String binding,
Set<net.openhft.chronicle.core.threads.HandlerPriority> priorities) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(@NotNull net.openhft.chronicle.core.threads.EventHandler handler) |
protected void |
addNewHandler(@NotNull net.openhft.chronicle.core.threads.EventHandler handler) |
static void |
closeAll(@NotNull List<net.openhft.chronicle.core.threads.EventHandler> handlers) |
protected void |
closeAllHandlers() |
void |
dumpRunningHandlers() |
int |
handlerCount() |
protected void |
loopFinishedAllHandlers() |
protected void |
loopStartedAllHandlers() |
protected void |
performClose() |
protected void |
runDaemonHandlers() |
protected void |
runTimerHandlers() |
protected long |
timerIntervalMS() |
@NotNull String |
toString() |
addHandlerInternal, dumpRunningState, handle, isAlive, loopStartNS, nonDaemonHandlerCount, performStart, performStopFromNew, performStopFromStarted, removeHandler, run, runAllHandlers, runsInsideCoreLoop, thread, unpause, updateHighHandler, updateMediumHandlersArrayawaitTermination, isStarted, isStopped, name, nameWithSlash, start, stopassertCloseable, assertCloseablesClosed, close, createdHere, disableCloseableTracing, enableCloseableTracing, gcAndWaitForCloseablesToClose, isClosed, isClosing, isInUserThread, referenceId, shouldPerformCloseInBackground, shouldWaitForClosed, singleThreadedCheckDisabled, singleThreadedCheckDisabled, singleThreadedCheckReset, threadSafetyCheck, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, unmonitor, waitForCloseablesToClose, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, inEventLoop, isStopped, name, start, stoppublic static final Set<net.openhft.chronicle.core.threads.HandlerPriority> ALLOWED_PRIORITIES
public VanillaEventLoop(@Nullable
@Nullable net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
String binding,
Set<net.openhft.chronicle.core.threads.HandlerPriority> priorities)
parent - the parent event loopname - the name of this event handlerpauser - the pause strategytimerIntervalMS - how long to pause, Long.MAX_VALUE = always check.daemon - is a demon threadbinding - set affinity description, "any", "none", "1", "last-1"public static void closeAll(@NotNull
@NotNull List<net.openhft.chronicle.core.threads.EventHandler> handlers)
@NotNull public @NotNull String toString()
toString in class MediumEventLooppublic void addHandler(@NotNull
@NotNull net.openhft.chronicle.core.threads.EventHandler handler)
addHandler in interface net.openhft.chronicle.core.threads.EventLoopaddHandler in class MediumEventLoopprotected void loopStartedAllHandlers()
loopStartedAllHandlers in class MediumEventLoopprotected void loopFinishedAllHandlers()
loopFinishedAllHandlers in class MediumEventLoopprotected long timerIntervalMS()
timerIntervalMS in class MediumEventLoopprotected void runTimerHandlers()
runTimerHandlers in class MediumEventLoopprotected void runDaemonHandlers()
runDaemonHandlers in class MediumEventLoopprotected void addNewHandler(@NotNull
@NotNull net.openhft.chronicle.core.threads.EventHandler handler)
addNewHandler in class MediumEventLooppublic int handlerCount()
handlerCount in class MediumEventLoopprotected void performClose()
performClose in class MediumEventLoopprotected void closeAllHandlers()
closeAllHandlers in class MediumEventLooppublic void dumpRunningHandlers()
dumpRunningHandlers in class MediumEventLoopCopyright © 2024. All rights reserved.