Sha256: a30fdbb87c6de8bd17819f2f222719d3b9c80093dec7fa0776d140a200bb196f

Contents?: true

Size: 1.04 KB

Versions: 35

Compression:

Stored size: 1.04 KB

Contents

module Concurrent
  module Actor
    module InternalDelegations
      include PublicDelegations

      # @see Core#children
      def children
        core.children
      end

      # @see Core#terminate!
      def terminate!
        behaviour!(Behaviour::Termination).terminate!
      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.ivar)
        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

35 entries across 35 versions & 1 rubygems

Version Path
concurrent-ruby-0.8.0 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.8.0-java lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.2 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.2-x86_64-linux lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.2-x86-solaris-2.11 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.2-x86-mingw32 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.2-x86-linux lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.2-x64-mingw32 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.2-java lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.8.0.pre2 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.8.0.pre2-java lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.8.0.pre1 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.8.0.pre1-java lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.1 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.1-x86_64-linux lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.1-x86-solaris-2.11 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.1-x86-mingw32 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.1-x86-linux lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.1-x64-mingw32 lib/concurrent/actor/internal_delegations.rb
concurrent-ruby-0.7.1-java lib/concurrent/actor/internal_delegations.rb