| static class | ThreadService.ThreadContext |
| ExecutorService | getExecutorService()
Gets the ExecutorService object used when run(java.util.concurrent.Callable<V>) is called.
|
| Thread | getParent(Thread thread)
Returns the thread that called the specified thread.
|
| ThreadService.ThreadContext | getThreadContext(Thread thread)
Analyzes the Context of the given thread.
|
| void | invoke(Runnable code)
Executes the given code in a special dispatch thread, blocking until
execution is complete.
|
| boolean | isDispatchThread()
Gets whether the current thread is a dispatch thread for use with
invoke(Runnable) and queue(Runnable).
|
| void | queue(Runnable code)
Queues the given code for later execution in a special dispatch thread,
returning immediately.
|
| <V> Future<V> | queue(String id,
Callable<V> code)
Queues the given code for later execution in a dispatch thread associated
with the specified ID, returning immediately.
|
| Future<?> | queue(String id,
Runnable code)
Queues the given code for later execution in a dispatch thread associated
with the specified ID, returning immediately.
|
| <V> Future<V> | run(Callable<V> code)
Asynchronously executes the given code in a new thread, as decided by the
thread service.
|
| Future<?> | run(Runnable code)
Asynchronously executes the given code in a new thread, as decided by the
thread service.
|
| void | setExecutorService(ExecutorService executor)
Sets the ExecutorService object used when run(java.util.concurrent.Callable<V>) is called.
|
In the case of AWT-based applications (e.g., Java on the desktop), this is typically the AWT Event Dispatch Thread (EDT). However, ultimately the behavior is implementation-dependent.
In the case of AWT-based applications (e.g., Java on the desktop), this is typically the AWT Event Dispatch Thread (EDT). However, ultimately the behavior is implementation-dependent.
In the case of AWT-based applications (e.g., Java on the desktop), this is typically the AWT Event Dispatch Thread (EDT). However, ultimately the behavior is implementation-dependent.
This works only on threads which the thread service knows about, of course.
Copyright © 2015–2022 SciJava. All rights reserved.