Module: Concurrent::Actor::InternalDelegations — Concurrent Ruby

# 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

- #behaviour(behaviour_class) ⇒ undocumented

  see Core#behaviour.

- #behaviour!(behaviour_class) ⇒ undocumented

  see Core#behaviour!.

- #children ⇒ undocumented
- #context ⇒ AbstractContext
- #context_class ⇒ undocumented (also: #actor_class) included from PublicDelegations
- #dead_letter_routing ⇒ undocumented
- #executor ⇒ undocumented included from PublicDelegations
- #log(level, message = nil, &block) ⇒ undocumented

  delegates to core.log.

- #name ⇒ undocumented included from PublicDelegations
- #parent ⇒ undocumented included from PublicDelegations
- #path ⇒ undocumented included from PublicDelegations
- #redirect(reference, envelope = self.envelope) ⇒ undocumented
- #reference ⇒ undocumented (also: #ref) included from PublicDelegations
- #terminate!(reason = nil) ⇒ undocumented
- #terminated? ⇒ Boolean

## 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

### #children ⇒ `undocumented`

See Also:

- Core#children

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

    def children
      core.children
    end

### #context ⇒ `AbstractContext`

Returns:

- (`AbstractContext`)

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

    def context
      core.context
    end

### #context_class ⇒ `undocumented` Also known as: actor_class Originally defined in module PublicDelegations

See Also:

- Core#context_class

### #dead_letter_routing ⇒ `undocumented`

See Also:

- AbstractContext#dead_letter_routing

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

    def dead_letter_routing
      context.dead_letter_routing
    end

### #executor ⇒ `undocumented` Originally defined in module PublicDelegations

See Also:

- Core#executor

### #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

### #name ⇒ `undocumented` Originally defined in module PublicDelegations

See Also:

- Core#name

### #parent ⇒ `undocumented` Originally defined in module PublicDelegations

See Also:

- Core#parent

### #path ⇒ `undocumented` Originally defined in module PublicDelegations

See Also:

- Core#path

### #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

### #reference ⇒ `undocumented` Also known as: ref Originally defined in module PublicDelegations

See Also:

- Core#reference

### #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