Interface ObservableLongCounter

All Superinterfaces:
AutoCloseable

public interface ObservableLongCounter extends AutoCloseable
A reference to an observable instrument registered with LongCounterBuilder.buildWithCallback(Consumer).
Since:
1.10.0
  • Method Details

    • close

      default void close()
      Remove the callback registered via LongCounterBuilder.buildWithCallback(Consumer). After this is called, the callback won't be invoked on future collections. Subsequent calls to close() have no effect.

      Note: other callbacks registered to the instrument with the same identity are unaffected.

      Specified by:
      close in interface AutoCloseable
      Since:
      1.12.0