void function ( ) { Date loc0 = new Date ( new Date ( ) . getTime ( ) - windowSizeMs ) ; while ( ! currentPoints . isEmpty ( ) && currentPoints . peekFirst ( ) . getEventTime ( ) . before ( loc0 ) ) { currentPoints . removeFirst ( ) ; } }
clean up points that do n't count any more are before our rolling window from our current queue of points . concode_field_sep long windowSizeMs concode_elem_sep Date eventTime concode_elem_sep ArrayDeque<DataPoint> currentPoints concode_elem_sep long value concode_field_sep long getValue concode_elem_sep long getCurrentAverage concode_elem_sep Date getEventTime concode_elem_sep void addPoint