|
Griffon 0.9.5-rc2 | |||||||
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 | |
---|---|
void
|
execAsync(Runnable runnable)
Executes a code block asynchronously on the UI thread. |
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
|
execOutside(Runnable runnable)
Executes a code block outside of the UI thread. |
void
|
execOutsideUI(Runnable runnable)
Executes a code block outside of the UI thread. |
void
|
execSync(Runnable runnable)
Executes a code block synchronously on the UI thread. |
boolean
|
isUIThread()
True if the current thread is the UI thread. |
Method Detail |
---|
@Deprecated public void execAsync(Runnable runnable)
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)
@Deprecated public void execOutside(Runnable runnable)
public void execOutsideUI(Runnable runnable)
@Deprecated public void execSync(Runnable runnable)
public boolean isUIThread()
Groovy Documentation