io.opentelemetry.sdk.autoconfigure.spi.Ordered Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opentelemetry-sdk-extension-autoconfigure-spi Show documentation
Show all versions of opentelemetry-sdk-extension-autoconfigure-spi Show documentation
OpenTelemetry SDK Auto-configuration SPI
/*
* 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;
}
}