Class: Aws::Telemetry::ContextManagerBase
- Inherits:
-
Object
- Object
- Aws::Telemetry::ContextManagerBase
- Defined in:
- gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb
Overview
Base for all ContextManager
classes.
Direct Known Subclasses
Instance Method Summary collapse
-
#attach(context) ⇒ Object
Associates a Context with the caller’s current execution unit.
-
#current ⇒ Context
Returns current context.
-
#detach(token) ⇒ Boolean
Restore the previous Context associated with the current execution unit to the value it had before attaching a specified Context.
Instance Method Details
#attach(context) ⇒ Object
Associates a Context with the caller’s current execution unit. Returns a token to be used with the matching call to detach.
162 163 164 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb', line 162 def attach(context) raise NotImplementedError end |
#current ⇒ Context
Returns current context.
153 154 155 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb', line 153 def current raise NotImplementedError end |
#detach(token) ⇒ Boolean
Restore the previous Context associated with the current execution unit to the value it had before attaching a specified Context.
172 173 174 |
# File 'gems/aws-sdk-core/lib/aws-sdk-core/telemetry/base.rb', line 172 def detach(token) raise NotImplementedError end |