Top Description Methods
org.eclipse.microprofile.metrics

public Interface Histogram

extends Metric, Sampling, Counting

A metric which calculates the distribution of a value.
See Also
Accurately computing running variance

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the number of values recorded
getCount
()

Redeclares org.eclipse.microprofile.metrics.Counting.getCount.

Returns the number of values recorded.

public Snapshot
getSnapshot()

Redeclares org.eclipse.microprofile.metrics.Sampling.getSnapshot.

Returns a snapshot of the values.

public long

Returns:

the sum of values recorded
getSum
()

Returns the sum of values recorded.

public void
update(int
the length of the value
value
)

Adds a recorded value.

public void
update(long
the length of the value
value
)

Adds a recorded value.

Method Detail

getCountback to summary
public long getCount()

Redeclares org.eclipse.microprofile.metrics.Counting.getCount.

Returns the number of values recorded.

Returns:long

the number of values recorded

Annotations
@Override
getSnapshotback to summary
public Snapshot getSnapshot()

Redeclares org.eclipse.microprofile.metrics.Sampling.getSnapshot.

Doc from org.eclipse.microprofile.metrics.Sampling.getSnapshot.

Returns a snapshot of the values.

Returns:Snapshot

a snapshot of the values

Annotations
@Override
getSumback to summary
public long getSum()

Returns the sum of values recorded.

Returns:long

the sum of values recorded

updateback to summary
public void update(int value)

Adds a recorded value.

Parameters
value:int

the length of the value

updateback to summary
public void update(long value)

Adds a recorded value.

Parameters
value:long

the length of the value