public class SlidingWindowSumLongAccumulator extends AbstractSlidingWindowAccumulator<Long>
Constructor and Description |
---|
SlidingWindowSumLongAccumulator(int windowSize)
Creates a new sum accumulator with the sliding window of a given size.
|
Modifier and Type | Method and Description |
---|---|
Long |
getResult()
Gets the accumulated result of currently added values.
|
add, reset
public SlidingWindowSumLongAccumulator(int windowSize)
windowSize
- Size of the sliding window.public Long getResult()
Accumulator
Copyright © 2010–2017 PerfCake Community. All rights reserved.