com.codahale.metrics.Reservoir Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.saml.opensaml.integration Show documentation
Show all versions of com.liferay.saml.opensaml.integration Show documentation
Liferay SAML OpenSAML Integration
package com.codahale.metrics;
/**
* A statistically representative reservoir of a data stream.
*/
public interface Reservoir {
/**
* Returns the number of values recorded.
*
* @return the number of values recorded
*/
int size();
/**
* Adds a new recorded value to the reservoir.
*
* @param value a new recorded value
*/
void update(long value);
/**
* Returns a snapshot of the reservoir's values.
*
* @return a snapshot of the reservoir's values
*/
Snapshot getSnapshot();
}