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

Inherits:
Abstract
  • Object
show all
Defined in:
lib/concurrent/actor/behaviour/executes_context.rb

Overview

Delegates messages and events to AbstractContext instance.

Instance Attribute Summary

Attributes inherited from Abstract

#core, #subsequent

Instance Method Summary collapse

Methods inherited from Abstract

#broadcast, #initialize, #pass, #reject_envelope

Methods included from InternalDelegations

#behaviour, #behaviour!, #children, #context, #dead_letter_routing, #log, #redirect, #terminate!, #terminated?

Methods included from PublicDelegations

#context_class, #executor, #name, #parent, #path, #reference

Methods included from TypeCheck

#Child!, #Child?, #Match!, #Match?, #Type!, #Type?

Constructor Details

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

Instance Method Details

#on_envelope(envelope) ⇒ Object



6
7
8
# File 'lib/concurrent/actor/behaviour/executes_context.rb', line 6

def on_envelope(envelope)
  context.on_envelope envelope
end

#on_event(public, event) ⇒ Object



10
11
12
13
# File 'lib/concurrent/actor/behaviour/executes_context.rb', line 10

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