com.amazonaws.services.simpleworkflow.flow.core

## クラス AsyncScope

- java.lang.Object
- - com.amazonaws.services.simpleworkflow.flow.core.AsyncScope

- すべての実装されたインタフェース:
    Cancelable

      public abstract class AsyncScope
      extends java.lang.Object
      implements Cancelable

  Interface between synchronous and asynchronous code. Serves as a root scope for asynchronous computation and as event loop for the owning synchronous code.
  作成者:
    fateev

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `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()`

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### AsyncScope

          public AsyncScope()

    - #### AsyncScope

          public AsyncScope(boolean disableAsyncStackTrace,
                    boolean excludeAsyncScopeStack)

  - ### メソッドの詳細

    - #### cancel

          public void cancel(java.lang.Throwable cause)

      定義:
        `cancel` インタフェース内 `Cancelable`

    - #### isCancelRequested

          public boolean isCancelRequested()

      定義:
        `isCancelRequested` インタフェース内 `Cancelable`

    - #### getAsynchronousThreadDump

          public java.util.List<AsyncTaskInfo> getAsynchronousThreadDump()

    - #### getAsynchronousThreadDumpAsString

          public java.lang.String getAsynchronousThreadDumpAsString()

    - #### eventLoop

          public boolean eventLoop()
                            throws java.lang.Throwable

      Execute all queued tasks. If execution of those tasks result in addition of new tasks to the queue execute them as well.

      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.

      戻り値:
        true means there are no tasks originated from this scope that are not done yet.
      例外:
        `java.lang.Throwable`

    - #### isComplete

          public boolean isComplete()

    - #### getFailure

          public java.lang.Throwable getFailure()

    - #### doAsync

          protected abstract void doAsync()
                                   throws java.lang.Throwable

      例外:
        `java.lang.Throwable`