|
Griffon 1.2.0 | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface ThreadingHandler
Base contract for classes that can perform tasks in different threads following the conventions set by the application.
Method Summary | |
---|---|
Future
|
execFuture(ExecutorService executorService, Closure closure)
Executes a code block as a Future on an ExecutorService. |
Future
|
execFuture(Closure closure)
Executes a code block as a Future on a default ExecutorService. |
Future
|
execFuture(ExecutorService executorService, Callable callable)
Executes a code block as a Future on an ExecutorService. |
Future
|
execFuture(Callable callable)
Executes a code block as a Future on a default ExecutorService. |
void
|
execInsideUIAsync(Runnable runnable)
Executes a code block asynchronously on the UI thread. |
void
|
execInsideUISync(Runnable runnable)
Executes a code block synchronously on the UI thread. |
void
|
execOutsideUI(Runnable runnable)
Executes a code block outside of the UI thread. |
boolean
|
isUIThread()
True if the current thread is the UI thread. |
Method Detail |
---|
public Future execFuture(ExecutorService executorService, Closure closure)
public Future execFuture(Closure closure)
public Future execFuture(ExecutorService executorService, Callable callable)
public Future execFuture(Callable callable)
public void execInsideUIAsync(Runnable runnable)
public void execInsideUISync(Runnable runnable)
public void execOutsideUI(Runnable runnable)
public boolean isUIThread()
Groovy Documentation