123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::Actor::Behaviour::ExecutesContext

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Abstract
Instance Chain:
Inherits: Concurrent::Actor::Behaviour::Abstract
Defined in: lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb

Overview

Delegates messages and events to Actor::AbstractContext instance.

Constant Summary

Concern::Logging - Included

SEV_LABEL

Class Method Summary

Abstract - Inherited

Instance Attribute Summary

Instance Method Summary

Abstract - Inherited

#broadcast

broadcasts event to all behaviours and context.

#on_envelope

override to add extra behaviour.

#on_event

override to add extra behaviour.

#pass, #reject_envelope

Actor::InternalDelegations - Included

Concern::Logging - Included

#log

Logs through Concurrent.global_logger, it can be overridden by setting @logger.

Actor::PublicDelegations - Included

Actor::TypeCheck - Included

Constructor Details

This class inherits a constructor from Concurrent::Actor::Behaviour::Abstract

Instance Method Details

#on_envelope(envelope)

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb', line 8

def on_envelope(envelope)
  context.on_envelope envelope
end

#on_event(public, event)

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/actor/behaviour/executes_context.rb', line 12

def on_event(public, event)
  context.on_event(event)
  super public, event
end