com.aliyun.openservices.shade.io.opentelemetry.api.metrics.ObservableDoubleCounter Maven / Gradle / Ivy
/*
* 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
* DoubleCounterBuilder#buildWithCallback(Consumer)}.
*/
public interface ObservableDoubleCounter extends AutoCloseable {
/**
* Remove the callback registered via {@link DoubleCounterBuilder#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