public class BlockingEventLoop
extends net.openhft.chronicle.core.io.SimpleCloseable
implements net.openhft.chronicle.core.threads.EventLoop
| Constructor and Description |
|---|
BlockingEventLoop(@NotNull net.openhft.chronicle.core.threads.EventLoop parent,
@NotNull String name) |
BlockingEventLoop(@NotNull String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHandler(@NotNull net.openhft.chronicle.core.threads.EventHandler handler)
This can be called multiple times and each handler will be executed in its own thread
|
void |
awaitTermination() |
boolean |
isAlive() |
String |
name() |
protected void |
performClose() |
void |
start() |
void |
stop() |
String |
toString() |
void |
unpause() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitclose, closeQuietly, closeQuietly, notifyClosingpublic BlockingEventLoop(@NotNull
@NotNull net.openhft.chronicle.core.threads.EventLoop parent,
@NotNull
@NotNull String name)
public BlockingEventLoop(@NotNull
@NotNull String name)
public void awaitTermination()
awaitTermination in interface net.openhft.chronicle.core.threads.EventLooppublic String name()
name in interface net.openhft.chronicle.core.threads.EventLooppublic void addHandler(@NotNull
@NotNull net.openhft.chronicle.core.threads.EventHandler handler)
addHandler in interface net.openhft.chronicle.core.threads.EventLoophandler - to executepublic 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 isAlive()
isAlive in interface net.openhft.chronicle.core.threads.EventLoopprotected void performClose()
performClose in class net.openhft.chronicle.core.io.SimpleCloseableCopyright © 2021. All rights reserved.