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

com.aliyun.openservices.shade.io.opentelemetry.api.metrics.ObservableDoubleGauge Maven / Gradle / Ivy

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

package com.aliyun.openservices.shade.com.aliyun.openservices.shade.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 - 2025 Weber Informatics LLC | Privacy Policy