public class VanillaEventLoop extends MediumEventLoop
| Modifier and Type | Field and Description |
|---|---|
static Set<net.openhft.chronicle.core.threads.HandlerPriority> |
ALLOWED_PRIORITIES |
daemon, FINISHED, highHandler, loopStartMS, mediumHandlers, mediumHandlersArray, name, newHandler, NO_CPU, NO_EVENT_HANDLERS, parent, pauser, service, thread| Constructor and Description |
|---|
VanillaEventLoop(@Nullable net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding)
Deprecated.
|
VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding,
int bindingCpu)
Deprecated.
|
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() |
boolean |
isAlive() |
protected void |
loopFinishedAllHandlers() |
protected void |
loopStartedAllHandlers() |
protected void |
performClose() |
protected void |
runDaemonHandlers() |
protected void |
runTimerHandlers() |
protected boolean |
threadSafetyCheck(boolean isUsed) |
protected long |
timerIntervalMS() |
@NotNull String |
toString() |
awaitTermination, dumpRunningState, loopStartMS, name, nonDaemonHandlerCount, removeHandler, run, runAllHandlers, start, stop, thread, unpauseassertCloseablesClosed, clearUsedByThread, close, createdHere, disableCloseableTracing, enableCloseableTracing, isClosed, isClosing, isInUserThread, performCloseInBackground, referenceId, resetUsedByThread, shouldPerformCloseInBackground, shouldWaitForClosed, throwExceptionIfClosed, throwExceptionIfClosedInSetter, unmonitor, waitForClosed, warnAndCloseIfNotClosedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, closeQuietly, closeQuietly, notifyClosingpublic 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"@Deprecated public VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent, String name, Pauser pauser, long timerIntervalMS, boolean daemon, boolean binding, int bindingCpu)
@Deprecated public VanillaEventLoop(@Nullable @Nullable net.openhft.chronicle.core.threads.EventLoop parent, String name, Pauser pauser, long timerIntervalMS, boolean daemon, boolean binding)
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 MediumEventLooppublic boolean isAlive()
isAlive in interface net.openhft.chronicle.core.threads.EventLoopisAlive in class MediumEventLoopprotected boolean threadSafetyCheck(boolean isUsed)
threadSafetyCheck in class MediumEventLoopCopyright © 2021. All rights reserved.