| Modifier and Type | Class and Description |
|---|---|
| private class | |
| public static interface | InvokeLaterDispatcher.
An InvokeLaterDispatcher client implements this interface to allow the dispatcher to submit runnables to the native system. |
| Modifier and Type | Field and Description |
|---|---|
| private final BlockingDeque | |
| private final InvokeLaterDispatcher. | |
| private volatile boolean | |
| private final Object | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | run()
Overrides java. Implements java. This method is run by the thread when it executes. |
| deque | back to summary |
|---|---|
| private final BlockingDeque<Runnable> deque | |
| invokeLaterSubmitter | back to summary |
|---|---|
| private final InvokeLaterDispatcher. | |
| leavingNestedEventLoop | back to summary |
|---|---|
| private volatile boolean leavingNestedEventLoop | |
| LOCK | back to summary |
|---|---|
| private final Object LOCK | |
| nestedEventLoopEntered | back to summary |
|---|---|
| private boolean nestedEventLoopEntered | |
| InvokeLaterDispatcher | back to summary |
|---|---|
| public InvokeLaterDispatcher(InvokeLaterDispatcher. | |
| invokeAndWait | back to summary |
|---|---|
| public void invokeAndWait(Runnable runnable) | |
| invokeLater | back to summary |
|---|---|
| public void invokeLater(Runnable command) Schedules execution of a runnable on the event thread.
| |
| notifyEnteringNestedEventLoop | back to summary |
|---|---|
| public void notifyEnteringNestedEventLoop() Notifies that a nested event loop is going to be entered. An InvokeLaterDispatcher client is responsible for calling this method just before the enterNestedEventLoop() is dispatched to the native system for actually starting the nested loop. | |
| notifyLeavingNestedEventLoop | back to summary |
|---|---|
| public void notifyLeavingNestedEventLoop() Notifies that the application is leaving a nested event loop. | |
| notifyLeftNestedEventLoop | back to summary |
|---|---|
| public void notifyLeftNestedEventLoop() Notifies that the application has left a nested event loop. | |
| run | back to summary |
|---|---|
| public void run() Overrides java. Implements java. Doc from java. This method is run by the thread when it executes. Subclasses of This method is not intended to be invoked directly. If this thread is a
platform thread created with a
| |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private final Runnable |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public void |
| done | back to summary |
|---|---|
| private boolean done | |
| runnable | back to summary |
|---|---|
| private final Runnable runnable | |
| Future | back to summary |
|---|---|
| public Future(Runnable r) | |
| isDone | back to summary |
|---|---|
| public boolean isDone() Tells whether the runnable has finished execution. This method must be called under the LOCK lock. | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | submitForLaterInvocation(Runnable r)
Submits the runnable to the native system for later execution and returns immediately. |
| submitForLaterInvocation | back to summary |
|---|---|
| public void submitForLaterInvocation(Runnable r) Submits the runnable to the native system for later execution and returns immediately. | |