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

org.apache.rocketmq.shaded.io.opentelemetry.api.metrics.ObservableDoubleGauge 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
 * DoubleGaugeBuilder#buildWithCallback(Consumer)}.
 */
public interface ObservableDoubleGauge extends AutoCloseable {

  /**
   * Remove the callback registered via {@link DoubleGaugeBuilder#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