T - Result type.public abstract class ReadAction<T> extends BaseActionRunnable<T>
WriteAction| Constructor and Description |
|---|
ReadAction() |
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends java.lang.Throwable> |
compute(ThrowableComputable<T,E> action) |
RunResult<T> |
execute()
Deprecated.
use
run(ThrowableRunnable) or compute(ThrowableComputable) instead |
static <T> NonBlockingReadAction<T> |
nonBlocking(java.util.concurrent.Callable<T> task)
Create an
NonBlockingReadAction builder to run the given Callable in a non-blocking read action on a background thread. |
static NonBlockingReadAction<java.lang.Void> |
nonBlocking(java.lang.Runnable task)
Create an
NonBlockingReadAction builder to run the given Runnable in non-blocking read action on a background thread. |
protected abstract void |
run(Result<T> result)
Deprecated.
use
run(ThrowableRunnable) or compute(ThrowableComputable) instead |
static <E extends java.lang.Throwable> |
run(ThrowableRunnable<E> action) |
static AccessToken |
start()
Deprecated.
use
run(ThrowableRunnable) or compute(ThrowableComputable) instead |
executeSilently, isSilentExecution@Deprecated public RunResult<T> execute()
run(ThrowableRunnable) or compute(ThrowableComputable) insteadexecute in class BaseActionRunnable<T>@Deprecated public static AccessToken start()
run(ThrowableRunnable) or compute(ThrowableComputable) instead@Deprecated protected abstract void run(Result<T> result) throws java.lang.Throwable
run(ThrowableRunnable) or compute(ThrowableComputable) insteadrun in class BaseActionRunnable<T>java.lang.Throwablepublic static <E extends java.lang.Throwable> void run(ThrowableRunnable<E> action) throws E extends java.lang.Throwable
E extends java.lang.ThrowableApplication.runReadAction(Runnable)public static <T,E extends java.lang.Throwable> T compute(ThrowableComputable<T,E> action) throws E extends java.lang.Throwable
E extends java.lang.ThrowableApplication.runReadAction(ThrowableComputable)public static NonBlockingReadAction<java.lang.Void> nonBlocking(java.lang.Runnable task)
NonBlockingReadAction builder to run the given Runnable in non-blocking read action on a background thread.public static <T> NonBlockingReadAction<T> nonBlocking(java.util.concurrent.Callable<T> task)
NonBlockingReadAction builder to run the given Callable in a non-blocking read action on a background thread.