public abstract class AbstractLifecycleHandler extends Object implements LifecycleHandler
LifecycleHandler interface.| Constructor and Description | 
|---|
| AbstractLifecycleHandler(GriffonApplication application) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected GriffonApplication | getApplication() | 
| boolean | isUIThread()True if the current thread is the UI thread. | 
| <R> Future<R> | runFuture(Callable<R> callable)Executes a code block as a Future on a default ExecutorService. | 
| <R> Future<R> | runFuture(ExecutorService executorService,
         Callable<R> callable)Executes a code block as a Future on an ExecutorService. | 
| void | runInsideUIAsync(Runnable runnable)Executes a code block asynchronously on the UI thread. | 
| <R> R | runInsideUISync(Callable<R> callable)Executes a code block synchronously on the UI thread. | 
| void | runInsideUISync(Runnable runnable)Executes a code block synchronously on the UI thread. | 
| void | runOutsideUI(Runnable runnable)Executes a code block outside of the UI thread. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute@Inject public AbstractLifecycleHandler(@Nonnull GriffonApplication application)
@Nonnull protected GriffonApplication getApplication()
public boolean isUIThread()
ThreadingHandlerisUIThread in interface ThreadingHandler@Nonnull public <R> Future<R> runFuture(@Nonnull Callable<R> callable)
ThreadingHandlerrunFuture in interface ThreadingHandler@Nonnull public <R> Future<R> runFuture(@Nonnull ExecutorService executorService, @Nonnull Callable<R> callable)
ThreadingHandlerrunFuture in interface ThreadingHandlerpublic void runInsideUIAsync(@Nonnull Runnable runnable)
ThreadingHandlerrunInsideUIAsync in interface ThreadingHandlerpublic void runInsideUISync(@Nonnull Runnable runnable)
ThreadingHandlerrunInsideUISync in interface ThreadingHandlerpublic void runOutsideUI(@Nonnull Runnable runnable)
ThreadingHandlerrunOutsideUI in interface ThreadingHandler@Nullable public <R> R runInsideUISync(@Nonnull Callable<R> callable)
ThreadingHandlerrunInsideUISync in interface ThreadingHandler