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

commonMain.aws.smithy.kotlin.runtime.telemetry.context.ContextManager.kt Maven / Gradle / Ivy

There is a newer version: 1.3.23
Show newest version
/*
 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */

package aws.smithy.kotlin.runtime.telemetry.context

/**
 * Responsible for managing the current context with callers current execution unit. For example, some implementations
 * use Thread Local storage for managing the current context.
 */
public interface ContextManager {
    public companion object {
        /**
         * A [ContextManager] that does nothing
         */
        public val None: ContextManager = object : AbstractContextManager() { }
    }

    /**
     * Return the current [Context]
     */
    public fun current(): Context
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy