io.opentelemetry.api.metrics.ObservableDoubleUpDownCounter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
The newest version!
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/
package io.opentelemetry.api.metrics;
import java.util.function.Consumer;
/**
* A reference to an observable instrument registered with {@link
* DoubleUpDownCounterBuilder#buildWithCallback(Consumer)}.
*
* @since 1.10.0
*/
public interface ObservableDoubleUpDownCounter extends AutoCloseable {
/**
* Remove the callback registered via {@link
* DoubleUpDownCounterBuilder#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 instrument with the same identity are unaffected.
*
* @since 1.12.0
*/
@Override
default void close() {}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy