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 Set<net.openhft.chronicle.core.threads.HandlerPriority> |
ALLOWED_PRIORITIES |
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)
Deprecated.
|
VanillaEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
long timerIntervalMS,
boolean daemon,
boolean binding,
int bindingCpu)
Deprecated.
|
VanillaEventLoop(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(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() |
int |
nonDaemonHandlerCount() |
void |
run() |
void |
start() |
void |
stop() |
Thread |
thread() |
String |
toString() |
void |
unpause() |
public static final Set<net.openhft.chronicle.core.threads.HandlerPriority> ALLOWED_PRIORITIES
public static final int NO_CPU
public VanillaEventLoop(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 handerpauser - 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(net.openhft.chronicle.core.threads.EventLoop parent, String name, Pauser pauser, long timerIntervalMS, boolean daemon, boolean binding)
public 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 long loopStartMS()
public String name()
name in interface net.openhft.chronicle.core.threads.EventLooppublic void dumpRunningState(@NotNull
String message,
@NotNull
BooleanSupplier finalCheck)
public int nonDaemonHandlerCount()
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 © 2020. All rights reserved.