All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.rocketmq.shaded.io.opentelemetry.api.metrics.ObservableLongGauge Maven / Gradle / Ivy

There is a newer version: 5.0.7
Show newest version
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package org.apache.rocketmq.shaded.io.opentelemetry.api.metrics;

import java.util.function.Consumer;

/**
 * A reference to an observable metric registered with {@link
 * LongGaugeBuilder#buildWithCallback(Consumer)}.
 */
public interface ObservableLongGauge extends AutoCloseable {

  /**
   * Remove the callback registered via {@link LongGaugeBuilder#buildWithCallback(Consumer)}. After
   * this is called, the callback won't be invoked on future collections. Subsequent calls to {@link
   * #close()} have no effect.
   *
   * 

Note: other callbacks registered to the metric with the same identity are unaffected. */ @Override default void close() {} }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy