Class: Temporalio::Internal::Worker::MultiRunner::Event::PollFailure

Inherits:
Temporalio::Internal::Worker::MultiRunner::Event show all
Defined in:
lib/temporalio/internal/worker/multi_runner.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(worker:, worker_type:, error:) ⇒ PollFailure

rubocop:disable Lint/MissingSuper



118
119
120
121
122
# File 'lib/temporalio/internal/worker/multi_runner.rb', line 118

def initialize(worker:, worker_type:, error:) # rubocop:disable Lint/MissingSuper
  @worker = worker
  @worker_type = worker_type
  @error = error
end

Instance Attribute Details

#errorObject (readonly)

Returns the value of attribute error.



116
117
118
# File 'lib/temporalio/internal/worker/multi_runner.rb', line 116

def error
  @error
end

#workerObject (readonly)

Returns the value of attribute worker.



116
117
118
# File 'lib/temporalio/internal/worker/multi_runner.rb', line 116

def worker
  @worker
end

#worker_typeObject (readonly)

Returns the value of attribute worker_type.



116
117
118
# File 'lib/temporalio/internal/worker/multi_runner.rb', line 116

def worker_type
  @worker_type
end