com.amazonaws.services.simpleworkflow.flow.worker

## クラス DecisionTaskPoller

- java.lang.Object
- - com.amazonaws.services.simpleworkflow.flow.worker.DecisionTaskPoller

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

      public class DecisionTaskPoller
      extends java.lang.Object
      implements TaskPoller

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

    コンストラクタ
    コンストラクタと説明
    `DecisionTaskPoller()`
    `DecisionTaskPoller(AmazonSimpleWorkflow service, java.lang.String domain, java.lang.String taskListToPoll, DecisionTaskHandler decisionTaskHandler)`

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `boolean` | `awaitTermination(long left, java.util.concurrent.TimeUnit milliseconds)`
    `protected void` | `checkFieldNotNegative(java.lang.String fieldName, long fieldValue)`
    `DecisionTaskHandler` | `getDecisionTaskHandler()`
    `java.lang.String` | `getDomain()`
    `java.lang.String` | `getIdentity()`
    `AmazonSimpleWorkflow` | `getService()`
    `java.lang.String` | `getTaskListToPoll()`
    `boolean` | `pollAndProcessSingleTask()` Poll for a workflow task and call appropriate decider.
    `void` | `setDecisionTaskHandler(DecisionTaskHandler decisionTaskHandler)`
    `void` | `setDomain(java.lang.String domain)`
    `void` | `setIdentity(java.lang.String identity)`
    `void` | `setService(AmazonSimpleWorkflow service)`
    `void` | `setTaskListToPoll(java.lang.String pollTaskList)`
    `void` | `shutdown()`
    `void` | `shutdownNow()`

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

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

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

    - #### DecisionTaskPoller

          public DecisionTaskPoller()

    - #### DecisionTaskPoller

          public DecisionTaskPoller(AmazonSimpleWorkflow service,
                            java.lang.String domain,
                            java.lang.String taskListToPoll,
                            DecisionTaskHandler decisionTaskHandler)

  - ### メソッドの詳細

    - #### getIdentity

          public java.lang.String getIdentity()

    - #### setIdentity

          public void setIdentity(java.lang.String identity)

    - #### getService

          public AmazonSimpleWorkflow getService()

    - #### getDomain

          public java.lang.String getDomain()

    - #### getDecisionTaskHandler

          public DecisionTaskHandler getDecisionTaskHandler()

    - #### setDecisionTaskHandler

          public void setDecisionTaskHandler(DecisionTaskHandler decisionTaskHandler)

    - #### setService

          public void setService(AmazonSimpleWorkflow service)

    - #### setDomain

          public void setDomain(java.lang.String domain)

    - #### getTaskListToPoll

          public java.lang.String getTaskListToPoll()

    - #### setTaskListToPoll

          public void setTaskListToPoll(java.lang.String pollTaskList)

    - #### pollAndProcessSingleTask

          public boolean pollAndProcessSingleTask()
                                           throws java.lang.Exception

      Poll for a workflow task and call appropriate decider. This method might call the service multiple times to retrieve the whole history it it is paginated.
      定義:
        `pollAndProcessSingleTask` インタフェース内 `TaskPoller`
      戻り値:
        true if task was polled and decided upon, false if poll timed out
      例外:
        `java.lang.Exception`
        `DeciderConfigurationException`

    - #### checkFieldNotNegative

          protected void checkFieldNotNegative(java.lang.String fieldName,
                                   long fieldValue)
                                        throws java.lang.IllegalStateException

      例外:
        `java.lang.IllegalStateException`

    - #### shutdown

          public void shutdown()

      定義:
        `shutdown` インタフェース内 `TaskPoller`

    - #### shutdownNow

          public void shutdownNow()

      定義:
        `shutdownNow` インタフェース内 `TaskPoller`

    - #### awaitTermination

          public boolean awaitTermination(long left,
                                 java.util.concurrent.TimeUnit milliseconds)
                                   throws java.lang.InterruptedException

      定義:
        `awaitTermination` インタフェース内 `TaskPoller`
      例外:
        `java.lang.InterruptedException`