Sha256: 2e562fa4525ff614bb45b9d9128e82646562687a375d3d289f1ace8914b6f164
Contents?: true
Size: 1.43 KB
Versions: 1
Compression:
Stored size: 1.43 KB
Contents
require 'concurrent/concern/logging' require 'concurrent/actor/public_delegations' module Concurrent module Actor module InternalDelegations include PublicDelegations include Concurrent::Concern::Logging # @see Core#children def children core.children end # @see Termination#terminate! def terminate!(reason = nil) behaviour!(Behaviour::Termination).terminate!(reason) end # @see Termination#terminated? def terminated? behaviour!(Behaviour::Termination).terminated? end # # @see Termination#reason # def reason # behaviour!(Behaviour::Termination).reason # end # delegates to core.log # @see Logging#log def log(level, message = nil, &block) core.log(level, message, &block) end # @see AbstractContext#dead_letter_routing def dead_letter_routing context.dead_letter_routing end def redirect(reference, envelope = self.envelope) reference.message(envelope.message, envelope.future) Behaviour::MESSAGE_PROCESSED end # @return [AbstractContext] def context core.context end # see Core#behaviour def behaviour(behaviour_class) core.behaviour(behaviour_class) end # see Core#behaviour! def behaviour!(behaviour_class) core.behaviour!(behaviour_class) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
concurrent-ruby-edge-0.7.2 | lib/concurrent-ruby-edge/concurrent/actor/internal_delegations.rb |