private void tryExpire ( boolean force , LongSupplier time ) { long now = time . getAsLong ( ) ; if ( force || now >= nextPruning ) { nextPruning = now + pruningDelay ; histogram . expire ( now ) ; } }
Expire the histogram if it is time to expire it or if force is true AND it is dirty