Thread.State, Thread.UncaughtExceptionHandler| 限定符和类型 | 字段和说明 |
|---|---|
protected Throwable |
error |
protected FUNC |
func |
protected I |
input |
protected R |
result |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| 构造器和说明 |
|---|
AbstractPromiseTask(FUNC func) |
AbstractPromiseTask(FUNC func,
I input) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected <T> T |
catchExec(X.ReturnCallbackNoParam<T> callback) |
protected <T> T |
catchExec(X.VoidCallbackNoParam callback) |
R |
get() |
R |
get(long millis) |
Throwable |
getError() |
I |
getInput() |
void |
setInput(I input) |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldprotected FUNC func
protected R result
protected I input
protected Throwable error
public AbstractPromiseTask(FUNC func)
protected <T> T catchExec(X.ReturnCallbackNoParam<T> callback)
protected <T> T catchExec(X.VoidCallbackNoParam callback)
public R get()
public R get(long millis) throws InterruptedException
public Throwable getError()
public I getInput()
public void setInput(I input)
Copyright © 2020. All Rights Reserved.