public class VanillaEventLoop extends Object implements net.openhft.chronicle.core.threads.EventLoop, Runnable, net.openhft.chronicle.core.io.Closeable
| Constructor and Description |
|---|
VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(boolean dontAttemptToRunImmediatelyInCurrentThread,
net.openhft.chronicle.core.threads.EventHandler handler) |
void |
addHandler(net.openhft.chronicle.core.threads.EventHandler handler) |
void |
close() |
static void |
closeAll(List<net.openhft.chronicle.core.threads.EventHandler> handlers) |
void |
closeAllHandlers() |
void |
dumpRunningHandlers() |
void |
dumpRunningState(String message,
java.util.function.BooleanSupplier finalCheck) |
int |
handlerCount() |
boolean |
isAlive() |
boolean |
isClosed() |
long |
loopStartMS() |
String |
name() |
void |
run() |
void |
start() |
void |
stop() |
String |
toString() |
void |
unpause() |
public VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding)
parent - the parent event loopname - the name of this event handerpauser - the pause strategytimerIntervalMS - how long to pausedaemon - is a demon threadbinding - to a cpupublic static void closeAll(List<net.openhft.chronicle.core.threads.EventHandler> handlers)
public void start()
start in interface net.openhft.chronicle.core.threads.EventLooppublic void unpause()
unpause in interface net.openhft.chronicle.core.threads.EventLooppublic void stop()
stop in interface net.openhft.chronicle.core.threads.EventLooppublic boolean isClosed()
isClosed in interface net.openhft.chronicle.core.threads.EventLooppublic void addHandler(@NotNull
net.openhft.chronicle.core.threads.EventHandler handler)
addHandler in interface net.openhft.chronicle.core.threads.EventLooppublic void addHandler(boolean dontAttemptToRunImmediatelyInCurrentThread,
@NotNull
net.openhft.chronicle.core.threads.EventHandler handler)
addHandler in interface net.openhft.chronicle.core.threads.EventLooppublic long loopStartMS()
public String name()
public void dumpRunningState(@NotNull
String message,
@NotNull
java.util.function.BooleanSupplier finalCheck)
public int handlerCount()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void closeAllHandlers()
public void dumpRunningHandlers()
public boolean isAlive()
isAlive in interface net.openhft.chronicle.core.threads.EventLoopCopyright © 2016. All rights reserved.