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.
221
222
223
224
|
# File 'lib/activejob/temporal/observability.rb', line 221
def initialize(name)
@name = name.to_sym
@started = false
end
|
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
219
220
221
|
# File 'lib/activejob/temporal/observability.rb', line 219
def name
@name
end
|
Instance Method Details
#instrument(_event_name, _payload) ⇒ Object
254
255
256
|
# File 'lib/activejob/temporal/observability.rb', line 254
def instrument(_event_name, _payload)
yield
end
|
#record(_event_name, _payload) ⇒ Object
250
251
252
|
# File 'lib/activejob/temporal/observability.rb', line 250
def record(_event_name, _payload)
nil
end
|
#start! ⇒ Object
226
227
228
229
230
|
# File 'lib/activejob/temporal/observability.rb', line 226
def start!
validate!
@started = true
self
end
|
#started? ⇒ Boolean
237
238
239
|
# File 'lib/activejob/temporal/observability.rb', line 237
def started?
@started
end
|
#stop! ⇒ Object
232
233
234
235
|
# File 'lib/activejob/temporal/observability.rb', line 232
def stop!
@started = false
self
end
|
#validate! ⇒ Object
241
242
243
244
|
# File 'lib/activejob/temporal/observability.rb', line 241
def validate!
validate_dependencies!
self
end
|
#validate_dependencies! ⇒ Object
246
247
248
|
# File 'lib/activejob/temporal/observability.rb', line 246
def validate_dependencies!
self
end
|