Search in sources :

Example 1 with MovingFunction

use of org.apache.beam.sdk.util.MovingFunction in project beam by apache.

the class RampupThrottlingFn method setup.

@Setup
public void setup() {
    this.sleeper = Sleeper.DEFAULT;
    this.successfulOps = new MovingFunction(Duration.standardSeconds(1).getMillis(), Duration.standardSeconds(1).getMillis(), 1, /* numSignificantBuckets */
    1, /* numSignificantSamples */
    Sum.ofLongs());
}
Also used : MovingFunction(org.apache.beam.sdk.util.MovingFunction)

Aggregations

MovingFunction (org.apache.beam.sdk.util.MovingFunction)1