Class WrappedCounter

java.lang.Object
com.couchbase.client.core.cnc.metrics.WrappedCounter
All Implemented Interfaces:
Counter

@Internal public class WrappedCounter extends Object implements Counter
Wraps one or more Counter as in some ObservabilitySemanticConvention configurations we need to write to two.
  • Constructor Details

    • WrappedCounter

      public WrappedCounter()
  • Method Details

    • incrementBy

      public void incrementBy(long number)
      Description copied from interface: Counter
      Increments the counter by the given number.
      Specified by:
      incrementBy in interface Counter
      Parameters:
      number - the number to increment the counter by.
    • add

      public void add(Counter counter)