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());
}
Aggregations