T - Result type.public abstract class WriteAction<T> extends BaseActionRunnable<T>
ReadAction| Constructor and Description |
|---|
WriteAction() |
| Modifier and Type | Method and Description |
|---|---|
static <T,E extends java.lang.Throwable> |
compute(ThrowableComputable<T,E> action)
Executes
action inside write action and returns the result. |
static <T,E extends java.lang.Throwable> |
computeAndWait(ThrowableComputable<T,E> action)
Executes
action inside write action. |
RunResult<T> |
execute()
Deprecated.
use
run(ThrowableRunnable)
or compute(ThrowableComputable)
or (if really desperate) computeAndWait(ThrowableComputable) instead |
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)
Executes
action inside write action. |
static <E extends java.lang.Throwable> |
runAndWait(ThrowableRunnable<E> action)
Executes
action inside write action. |
static AccessToken |
start()
Deprecated.
Use
run(ThrowableRunnable) or compute(ThrowableComputable) instead |
executeSilently, isSilentExecution@Deprecated public RunResult<T> execute()
run(ThrowableRunnable)
or compute(ThrowableComputable)
or (if really desperate) computeAndWait(ThrowableComputable) insteadexecute in class BaseActionRunnable<T>@Deprecated public static AccessToken start()
run(ThrowableRunnable) or compute(ThrowableComputable) insteadpublic static <E extends java.lang.Throwable> void run(ThrowableRunnable<E> action) throws E extends java.lang.Throwable
action inside write action.
Must be called from the EDT.E extends java.lang.Throwablepublic static <T,E extends java.lang.Throwable> T compute(ThrowableComputable<T,E> action) throws E extends java.lang.Throwable
action inside write action and returns the result.
Must be called from the EDT.E extends java.lang.Throwable@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 runAndWait(ThrowableRunnable<E> action) throws E extends java.lang.Throwable
action inside write action.
If called from outside the EDT, transfers control to the EDT first, executes write action there and waits for the execution end.
run(ThrowableRunnable).E extends java.lang.Throwablepublic static <T,E extends java.lang.Throwable> T computeAndWait(ThrowableComputable<T,E> action) throws E extends java.lang.Throwable
action inside write action.
If called from outside the EDT, transfers control to the EDT first, executes write action there and waits for the execution end.
compute(ThrowableComputable).E extends java.lang.Throwable