Interface BaseCounter

All Known Subinterfaces:
AsyncCounter, Counter, SyncCounter
All Known Implementing Classes:
COUNTER.CounterImpl, COUNTER.SyncCounterImpl

public interface BaseCounter
Base interface for all counters
Since:
5.2
  • Method Details

    • getName

      String getName()
      Returns:
      The counter's name.
    • sync

      SyncCounter sync()
      Returns a SyncCounter wrapper for this instance. If this counter is already synchronous, then this counter instance is returned (no-op)
      Returns:
      The SyncCounter instance;
    • async

      AsyncCounter async()
      Returns an AsyncCounter wrapper for this instance. If this counter is already asynchronous, then this counter instance is returned (no-op)
      Returns:
      The AsyncCounter instance.