see Concurrent::Actor::Core#behaviour
# File lib/concurrent/actor/internal_delegations.rb, line 49 def behaviour(behaviour_class) core.behaviour(behaviour_class) end
see Concurrent::Actor::Core#behaviour!
# File lib/concurrent/actor/internal_delegations.rb, line 54 def behaviour!(behaviour_class) core.behaviour!(behaviour_class) end
@see Concurrent::Actor::Core#children
# File lib/concurrent/actor/internal_delegations.rb, line 8 def children core.children end
@return [AbstractContext]
# File lib/concurrent/actor/internal_delegations.rb, line 44 def context core.context end
@see Concurrent::Actor::AbstractContext#dead_letter_routing
# File lib/concurrent/actor/internal_delegations.rb, line 34 def dead_letter_routing context.dead_letter_routing end
delegates to core.log @see Logging#log
# File lib/concurrent/actor/internal_delegations.rb, line 29 def log(level, message = nil, &block) core.log(level, message, &block) end
# File lib/concurrent/actor/internal_delegations.rb, line 38 def redirect(reference, envelope = self.envelope) reference.message(envelope.message, envelope.future) Behaviour::MESSAGE_PROCESSED end
@see Termination#terminate!
# File lib/concurrent/actor/internal_delegations.rb, line 13 def terminate!(reason = nil) behaviour!(Behaviour::Termination).terminate!(reason) end
@see Termination#terminated?
# File lib/concurrent/actor/internal_delegations.rb, line 18 def terminated? behaviour!(Behaviour::Termination).terminated? end