public final class InvokeLaterDispatcher
extends java.lang.Thread
| Modifier and Type | Class and Description |
|---|---|
private class |
InvokeLaterDispatcher.Future |
static interface |
InvokeLaterDispatcher.InvokeLaterSubmitter
An InvokeLaterDispatcher client implements this interface to allow
the dispatcher to submit runnables to the native system.
|
| Modifier and Type | Field and Description |
|---|---|
private java.util.concurrent.BlockingDeque<java.lang.Runnable> |
deque |
private InvokeLaterDispatcher.InvokeLaterSubmitter |
invokeLaterSubmitter |
private boolean |
leavingNestedEventLoop |
private java.lang.Object |
LOCK |
private boolean |
nestedEventLoopEntered |
| Constructor and Description |
|---|
InvokeLaterDispatcher(InvokeLaterDispatcher.InvokeLaterSubmitter invokeLaterSubmitter) |
| Modifier and Type | Method and Description |
|---|---|
void |
invokeAndWait(java.lang.Runnable runnable) |
void |
invokeLater(java.lang.Runnable command)
Schedules execution of a runnable on the event thread.
|
void |
notifyEnteringNestedEventLoop()
Notifies that a nested event loop is going to be entered.
|
void |
notifyLeavingNestedEventLoop()
Notifies that the application is leaving a nested event loop.
|
void |
notifyLeftNestedEventLoop()
Notifies that the application has left a nested event loop.
|
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprivate final java.util.concurrent.BlockingDeque<java.lang.Runnable> deque
private final java.lang.Object LOCK
private boolean nestedEventLoopEntered
private volatile boolean leavingNestedEventLoop
private final InvokeLaterDispatcher.InvokeLaterSubmitter invokeLaterSubmitter
public InvokeLaterDispatcher(InvokeLaterDispatcher.InvokeLaterSubmitter invokeLaterSubmitter)
public void run()
run in interface java.lang.Runnablerun in class java.lang.Threadpublic void invokeAndWait(java.lang.Runnable runnable)
public void invokeLater(java.lang.Runnable command)
Application.invokeLater(Runnable)public void notifyEnteringNestedEventLoop()
public void notifyLeavingNestedEventLoop()
public void notifyLeftNestedEventLoop()