1 package com.atlassian.vcache.internal;
2
3 /**
4 * A metric for tracking {@link Long} values.
5 *
6 * @since 1.0.0
7 */
8 public interface LongMetric {
9 /**
10 * Returns the number of samples recorded.
11 *
12 * @return the number of samples recorded.
13 */
14 long getSampleCount();
15
16 /**
17 * Returns the total of all samples recorded.
18 *
19 * @return the total of all samples recorded.
20 */
21 long getSamplesTotal();
22
23 /**
24 * Returns the minimum sample value recorded.
25 *
26 * @return the minimum sample value recorded.
27 */
28 long getMinSample();
29
30 /**
31 * Returns the maximum sample value recorded.
32 *
33 * @return the maximum sample value recorded.
34 */
35 long getMaxSample();
36 }