Class AsyncOperationEndStrategies
java.lang.Object
io.opentelemetry.instrumentation.api.annotation.support.async.AsyncOperationEndStrategies
A global registry of
AsyncOperationEndStrategy implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncOperationEndStrategiesinstance()Obtain instance of the async strategy registry.static voidSets the actual strategies' registry implementation.abstract voidregisterStrategy(AsyncOperationEndStrategy strategy) Add the passedstrategyto the registry.abstract AsyncOperationEndStrategyresolveStrategy(Class<?> returnType) Returns anAsyncOperationEndStrategythat is able to compose overreturnType, ornullif passed type is not supported by any of the strategies stored in this registry.abstract voidunregisterStrategy(AsyncOperationEndStrategy strategy) Remove the passedstrategyfrom the registry.
-
Constructor Details
-
AsyncOperationEndStrategies
public AsyncOperationEndStrategies()
-
-
Method Details
-
internalSetStrategiesStorage
Sets the actual strategies' registry implementation. The javaagent uses weak references to make unloading strategy classes possible.This is supposed to be only called by the javaagent. Instrumentation must not call this.
-
instance
Obtain instance of the async strategy registry. -
registerStrategy
Add the passedstrategyto the registry. -
unregisterStrategy
Remove the passedstrategyfrom the registry. -
resolveStrategy
Returns anAsyncOperationEndStrategythat is able to compose overreturnType, ornullif passed type is not supported by any of the strategies stored in this registry.
-