Module: Concurrent::Actor::InternalDelegations

Includes:
PublicDelegations, Logger::Severity
Included in:
AbstractContext, Behaviour::Abstract
Defined in:
lib-edge/concurrent/actor/internal_delegations.rb

Instance Method Summary collapse

Instance Method Details

#behaviour(behaviour_class) ⇒ undocumented

see Core#behaviour



49
50
51
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 49

def behaviour(behaviour_class)
  core.behaviour(behaviour_class)
end

#behaviour!(behaviour_class) ⇒ undocumented

see Core#behaviour!



54
55
56
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 54

def behaviour!(behaviour_class)
  core.behaviour!(behaviour_class)
end

#childrenundocumented

See Also:



8
9
10
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 8

def children
  core.children
end

#contextAbstractContext

Returns:



44
45
46
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 44

def context
  core.context
end

#dead_letter_routingundocumented



34
35
36
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 34

def dead_letter_routing
  context.dead_letter_routing
end

#log(level, message = nil, &block) ⇒ undocumented

delegates to core.log

See Also:

  • Logging#log


29
30
31
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 29

def log(level, message = nil, &block)
  core.log(level, message, &block)
end

#redirect(reference, envelope = self.envelope) ⇒ undocumented



38
39
40
41
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 38

def redirect(reference, envelope = self.envelope)
  reference.message(envelope.message, envelope.future)
  Behaviour::MESSAGE_PROCESSED
end

#terminate!(reason = nil) ⇒ undocumented

See Also:

  • Termination#terminate!


13
14
15
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 13

def terminate!(reason = nil)
  behaviour!(Behaviour::Termination).terminate!(reason)
end

#terminated?Boolean

Returns:

  • (Boolean)

See Also:

  • Termination#terminated?


18
19
20
# File 'lib-edge/concurrent/actor/internal_delegations.rb', line 18

def terminated?
  behaviour!(Behaviour::Termination).terminated?
end

#context_classundocumented Also known as: actor_class Originally defined in module PublicDelegations

See Also:

#executorundocumented Originally defined in module PublicDelegations

See Also:

#nameundocumented Originally defined in module PublicDelegations

See Also:

#parentundocumented Originally defined in module PublicDelegations

See Also:

#pathundocumented Originally defined in module PublicDelegations

See Also:

#referenceundocumented Also known as: ref Originally defined in module PublicDelegations

See Also: