com.amazonaws.services.simpleworkflow.flow.worker

## クラス Throttler

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

-     public class Throttler
      extends java.lang.Object

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

    コンストラクタ
    コンストラクタと説明
    `Throttler(java.lang.String name, double maxRatePerSecond, long rateIntervalMilliseconds)` Construct throttler.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `void` | `setMaxRatePerSecond(double maxRatePerSecond)`
    `void` | `throttle()` When called on each request sleeps if called faster then configured average rate.
    `void` | `throttle(int count)`

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

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

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

    - #### Throttler

          public Throttler(java.lang.String name,
                   double maxRatePerSecond,
                   long rateIntervalMilliseconds)

      Construct throttler.
      パラメータ:
        `name` - Human readable name of the resource being throttled. Used for logging only.
        `maxRatePerSecond` - maximum rate allowed
        `rateIntervalMilliseconds` - rate measurement interval. Interval should be at least 1000 / maxRatePerSecond.

  - ### メソッドの詳細

    - #### setMaxRatePerSecond

          public void setMaxRatePerSecond(double maxRatePerSecond)

    - #### throttle

          public void throttle(int count)
                        throws java.lang.InterruptedException

      例外:
        `java.lang.InterruptedException`

    - #### throttle

          public void throttle()
                        throws java.lang.InterruptedException

      When called on each request sleeps if called faster then configured average rate.
      例外:
        `java.lang.InterruptedException` - when interrupted