com.amazonaws.services.simpleworkflow.flow.core

## クラス ExternalTask

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

-     public abstract class ExternalTask
      extends java.lang.Object

  Used to bridge asynchronous execution to external asynchronous APIs or events. `ExternalTask#doExecute(handle)` method is expected to initiate call to an external API and return without blocking. Then completion or failure of the external task is reported through `ExternalTaskCompletionHandle`. A cancellation handler returned by the doExecute is used to report cancellation of the external task.

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

    コンストラクタ
    コンストラクタと説明
    `ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent, boolean daemon, Promise<?>... waitFor)`
    `ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent, Promise<?>... waitFor)`
    `ExternalTask(boolean daemon, Promise<?>... waitFor)`
    `ExternalTask(Promise<?>... waitFor)`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `protected abstract ExternalTaskCancellationHandler` | `doExecute(ExternalTaskCompletionHandle handle)`
    `java.lang.String` | `getName()`
    `java.lang.StackTraceElement[]` | `getStackTrace()`
    `void` | `setName(java.lang.String name)`

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

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

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

    - #### ExternalTask

          public ExternalTask(Promise<?>... waitFor)

    - #### ExternalTask

          public ExternalTask(boolean daemon,
                      Promise<?>... waitFor)

    - #### ExternalTask

          public ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent,
                      Promise<?>... waitFor)

    - #### ExternalTask

          public ExternalTask(com.amazonaws.services.simpleworkflow.flow.core.AsyncContextAware parent,
                      boolean daemon,
                      Promise<?>... waitFor)

  - ### メソッドの詳細

    - #### getName

          public java.lang.String getName()

    - #### setName

          public void setName(java.lang.String name)

    - #### getStackTrace

          public java.lang.StackTraceElement[] getStackTrace()

    - #### doExecute

          protected abstract ExternalTaskCancellationHandler doExecute(ExternalTaskCompletionHandle handle)
                                                                throws java.lang.Throwable

      例外:
        `java.lang.Throwable`