Top Description Methods
org.eclipse.microprofile.metrics

public Interface Counter

extends Metric, Counting

An incrementing counter metric.

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the counter's current value
getCount
()

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

Returns the counter's current value.

public void
inc()

Increment the counter by one.

public void
inc(long
the amount by which the counter will be increased
n
)

Increment the counter by n.

Method Detail

getCountback to summary
public long getCount()

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

Returns the counter's current value.

Returns:long

the counter's current value

Annotations
@Override
incback to summary
public void inc()

Increment the counter by one.

incback to summary
public void inc(long n)

Increment the counter by n.

Parameters
n:long

the amount by which the counter will be increased