public abstract class AsyncScope extends java.lang.Object implements Cancelable
| コンストラクタと説明 |
|---|
AsyncScope() |
AsyncScope(boolean disableAsyncStackTrace,
boolean excludeAsyncScopeStack) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
cancel(java.lang.Throwable cause) |
protected abstract void |
doAsync() |
boolean |
eventLoop()
Execute all queued tasks.
|
java.util.List<AsyncTaskInfo> |
getAsynchronousThreadDump() |
java.lang.String |
getAsynchronousThreadDumpAsString() |
java.lang.Throwable |
getFailure() |
boolean |
isCancelRequested() |
boolean |
isComplete() |
public AsyncScope()
public AsyncScope(boolean disableAsyncStackTrace,
boolean excludeAsyncScopeStack)
public void cancel(java.lang.Throwable cause)
cancel インタフェース内 Cancelablepublic boolean isCancelRequested()
isCancelRequested インタフェース内 Cancelablepublic java.util.List<AsyncTaskInfo> getAsynchronousThreadDump()
public java.lang.String getAsynchronousThreadDumpAsString()
public boolean eventLoop()
throws java.lang.Throwable
Unless there are external dependencies or bugs single call to this method performs the complete asynchronous execution.
In presence of external dependencies it is expected that
eventLoop() is called every time after change in their state
can unblock the asynchronous execution.
java.lang.Throwablepublic boolean isComplete()
public java.lang.Throwable getFailure()
protected abstract void doAsync()
throws java.lang.Throwable
java.lang.Throwable