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

io.opentelemetry.sdk.autoconfigure.spi.Ordered Maven / Gradle / Ivy

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

package io.opentelemetry.sdk.autoconfigure.spi;

/**
 * Interface to be extended by SPIs that need to guarantee ordering during loading.
 *
 * @since 1.17.0
 */
public interface Ordered {

  /**
   * Returns the order of applying the SPI implementing this interface. Higher values are applied
   * later, for example: an SPI with order=1 will run after an SPI with order=0. SPI implementations
   * with equal values will be run in a non-deterministic order.
   */
  default int order() {
    return 0;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy