Class: OFlow::Actors::Relay

Inherits:
OFlow::Actor show all
Defined in:
lib/oflow/actors/relay.rb

Overview

Relays a shipment to another location. This is useful for creating aliases for a Task.

Instance Attribute Summary

Attributes inherited from OFlow::Actor

#task

Instance Method Summary collapse

Methods inherited from OFlow::Actor

#busy?, #inputs, #options, #outputs, #set_option

Constructor Details

#initialize(task, options) ⇒ Relay

Returns a new instance of Relay.



9
10
11
# File 'lib/oflow/actors/relay.rb', line 9

def initialize(task, options)
  super
end

Instance Method Details

#perform(op, box) ⇒ Object



13
14
15
# File 'lib/oflow/actors/relay.rb', line 13

def perform(op, box)
  task.ship(op, box)
end

#with_own_threadObject



17
18
19
# File 'lib/oflow/actors/relay.rb', line 17

def with_own_thread()
  false
end