Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.codahale.metrics;

A statistically representative reservoir of a data stream.
 public interface Reservoir {
Returns the number of values recorded.

the number of values recorded
    int size();

Adds a new recorded value to the reservoir.

value a new recorded value
    void update(long value);

Returns a snapshot of the reservoir's values.

a snapshot of the reservoir's values
New to GrepCode? Check out our FAQ X