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

com.aliyun.oss.shade.io.opentelemetry.api.metrics.BatchCallback Maven / Gradle / Ivy

Go to download

The Aliyun OSS SDK for Java used for accessing Aliyun Object Storage Service, includes all service and dependent JARs.

The newest version!
/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package io.opentelemetry.api.metrics;

/**
 * A reference to a batch callback registered via {@link Meter#batchCallback(Runnable,
 * ObservableMeasurement, ObservableMeasurement...)}.
 *
 * @since 1.15.0
 */
public interface BatchCallback extends AutoCloseable {

  /**
   * Remove the callback registered via {@link Meter#batchCallback(Runnable, ObservableMeasurement,
   * ObservableMeasurement...)}. After this is called, the callback won't be invoked on future
   * collections. Subsequent calls to {@link #close()} have no effect.
   */
  @Override
  default void close() {}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy