Class HealthCheckCounter

  • All Implemented Interfaces:
    HealthCheckStatsProvider, org.eclipse.microprofile.metrics.Counter, org.eclipse.microprofile.metrics.Counting, org.eclipse.microprofile.metrics.Metric

    public class HealthCheckCounter
    extends Object
    implements org.eclipse.microprofile.metrics.Counter, HealthCheckStatsProvider
    Implementation of a counter based off an HealthCheck. As this is just a proxy for the HealthCheck calling the inc() method will throw an UnsupportedOperationException. Just use the getCount() method to get the value of the HealthCheck backing this.