TransactionContextManager class
Transaction context manager
Constructors
- TransactionContextManager()
-
factory
- TransactionContextManager.isolated()
- Independent propagation state for an isolated API instance.
Properties
- currentContext → TransactionContext?
-
no setter
-
effectiveContext
→ Map<
String, dynamic> -
Explicit carriers replace the legacy manager's context while registered.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cleanup(
) → void -
clearContext(
String transactionId) → void -
createChildContext(
String transactionId, Map< String, dynamic> attributes) → TransactionContext -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
popContext(
) → TransactionContext? -
pushContext(
TransactionContext context, {Duration? timeout}) → void -
setTransactionContext<
T> (EvaluationContext context, FutureOr< T> operation()) → Future<T> - Runs the operation even when no carrier has been registered.
-
setTransactionContextPropagator(
TransactionContextPropagator? propagator) → void - Experimental carrier registration. Null removes the carrier.
-
toString(
) → String -
A string representation of this object.
inherited
-
withContext<
T> (String transactionId, Map< String, dynamic> attributes, Future<T> operation()) → Future<T> - Run code with a specific transaction context
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited