public interface EventLoop extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
addHandler(boolean dontAttemptToRunImmediatelyInCurrentThread,
EventHandler handler) |
void |
addHandler(EventHandler handler) |
void |
awaitTermination()
Wait until the event loop has terminated.
|
boolean |
isAlive() |
boolean |
isClosed() |
void |
start() |
void |
stop() |
void |
unpause() |
close, closeQuietly, closeQuietly, notifyClosing
void addHandler(boolean dontAttemptToRunImmediatelyInCurrentThread, @NotNull EventHandler handler)
void addHandler(EventHandler handler)
void start()
void unpause()
void stop()
boolean isClosed()
true
close has been calledboolean isAlive()
true
if the main thread is runningvoid awaitTermination()
Copyright © 2018. All rights reserved.