Class: Dynflow::Dispatcher::Abstract

Inherits:
Actor
  • Object
show all
Defined in:
lib/dynflow/dispatcher/abstract.rb

Direct Known Subclasses

ClientDispatcher, ExecutorDispatcher

Instance Method Summary collapse

Methods inherited from Actor

#behaviour_definition, #finish_termination, #start_termination, #terminating?

Methods included from MethodicActor

#on_message

Methods included from Actor::LogWithFullBacktrace

#log

Instance Method Details

#connectorObject



6
7
8
# File 'lib/dynflow/dispatcher/abstract.rb', line 6

def connector
  @world.connector
end

#respond(request_envelope, response) ⇒ Object



10
11
12
13
# File 'lib/dynflow/dispatcher/abstract.rb', line 10

def respond(request_envelope, response)
  response_envelope = request_envelope.build_response_envelope(response, @world)
  connector.send(response_envelope)
end