Class: ActiveJob::Temporal::Observability::Adapter
- Inherits:
-
Object
- Object
- ActiveJob::Temporal::Observability::Adapter
show all
- Defined in:
- lib/activejob/temporal/observability.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(name) ⇒ Adapter
Returns a new instance of Adapter.
209
210
211
212
|
# File 'lib/activejob/temporal/observability.rb', line 209
def initialize(name)
@name = name.to_sym
@started = false
end
|
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
207
208
209
|
# File 'lib/activejob/temporal/observability.rb', line 207
def name
@name
end
|
Instance Method Details
#instrument(_event_name, _payload) ⇒ Object
242
243
244
|
# File 'lib/activejob/temporal/observability.rb', line 242
def instrument(_event_name, _payload)
yield
end
|
#record(_event_name, _payload) ⇒ Object
238
239
240
|
# File 'lib/activejob/temporal/observability.rb', line 238
def record(_event_name, _payload)
nil
end
|
#start! ⇒ Object
214
215
216
217
218
|
# File 'lib/activejob/temporal/observability.rb', line 214
def start!
validate!
@started = true
self
end
|
#started? ⇒ Boolean
225
226
227
|
# File 'lib/activejob/temporal/observability.rb', line 225
def started?
@started
end
|
#stop! ⇒ Object
220
221
222
223
|
# File 'lib/activejob/temporal/observability.rb', line 220
def stop!
@started = false
self
end
|
#validate! ⇒ Object
229
230
231
232
|
# File 'lib/activejob/temporal/observability.rb', line 229
def validate!
validate_dependencies!
self
end
|
#validate_dependencies! ⇒ Object
234
235
236
|
# File 'lib/activejob/temporal/observability.rb', line 234
def validate_dependencies!
self
end
|