public class MediumEventLoop extends Object implements net.openhft.chronicle.core.threads.EventLoop, Runnable, net.openhft.chronicle.core.io.Closeable
| Constructor and Description |
|---|
MediumEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
boolean daemon,
String binding) |
| 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 MediumEventLoop(net.openhft.chronicle.core.threads.EventLoop parent,
String name,
Pauser pauser,
boolean daemon,
String binding)
parent - the parent event loopname - the name of this event handerpauser - the pause strategydaemon - is a demon threadbinding - set affinity description, "any", "none", "1", "last-1"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.