public class VanillaEventLoop extends Object implements net.openhft.chronicle.core.threads.EventLoop, Runnable, net.openhft.chronicle.core.io.Closeable
| Modifier and Type | Field and Description |
|---|---|
static int |
NO_CPU |
| Constructor and Description |
|---|
VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding) |
VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding,
int bindingCpu) |
| 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 |
awaitTermination() |
void |
close() |
static void |
closeAll(List<net.openhft.chronicle.core.threads.EventHandler> handlers) |
void |
closeAllHandlers() |
void |
dumpRunningHandlers() |
void |
dumpRunningState(String message,
BooleanSupplier finalCheck) |
int |
handlerCount() |
boolean |
isAlive() |
boolean |
isClosed() |
long |
loopStartMS() |
String |
name() |
void |
run() |
void |
start() |
void |
stop() |
Thread |
thread() |
String |
toString() |
void |
unpause() |
public static final int NO_CPU
public VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding,
int bindingCpu)
parent - the parent event loopname - the name of this event handerpauser - the pause strategytimerIntervalMS - how long to pausedaemon - is a demon threadbinding - set affinitybindingCpu - cpu to bind topublic static void closeAll(@NotNull
List<net.openhft.chronicle.core.threads.EventHandler> handlers)
@Nullable public Thread thread()
public void awaitTermination()
awaitTermination in interface net.openhft.chronicle.core.threads.EventLooppublic 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
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 © 2019. All rights reserved.