Module: Concurrent::Actor::InternalDelegations

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

Instance Method Summary (collapse)

Instance Method Details

- (undocumented) behaviour(behaviour_class)

see Core#behaviour



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

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

- (undocumented) behaviour!(behaviour_class)

see Core#behaviour!



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

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

- (undocumented) children

See Also:



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

def children
  core.children
end

- (AbstractContext) context

Returns:



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

def context
  core.context
end

- (undocumented) context_class Also known as: actor_class Originally defined in module PublicDelegations

See Also:

- (undocumented) dead_letter_routing



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

def dead_letter_routing
  context.dead_letter_routing
end

- (undocumented) executor Originally defined in module PublicDelegations

See Also:

- (undocumented) log(level, message = nil, &block)

delegates to core.log

See Also:

  • Logging#log


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

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

- (undocumented) name Originally defined in module PublicDelegations

See Also:

- (undocumented) parent Originally defined in module PublicDelegations

See Also:

- (undocumented) path Originally defined in module PublicDelegations

See Also:

- (undocumented) redirect(reference, envelope = self.envelope)



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

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

- (undocumented) reference Also known as: ref Originally defined in module PublicDelegations

See Also:

- (undocumented) terminate!(reason = nil)

See Also:

  • Termination#terminate!


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

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

- (Boolean) terminated?

Returns:

  • (Boolean)

See Also:

  • Termination#terminated?


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

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