123456789_123456789_123456789_123456789_123456789_

Class: Concurrent::Actor::RestartingContext Abstract

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: Concurrent::Actor::AbstractContext
Defined in: lib/concurrent-ruby-edge/concurrent/actor/context.rb

Overview

This class is abstract.

Context of an Actor for robust systems. It supports supervision, linking, pauses on error. Uses Behaviour.restarting_behaviour_definition

Constant Summary

Concern::Logging - Included

SEV_LABEL

Class Method Summary

AbstractContext - Inherited

.spawn

Behaves as spawn but :class is auto-inserted based on receiver so it can be omitted.

.spawn!

behaves as spawn! but :class is auto-inserted based on receiver so it can be omitted.

.to_spawn_options

Instance Attribute Summary

Instance Method Summary

AbstractContext - Inherited

#<<
#ask,
#ask!
#behaviour_definition,
#dead_letter_routing

Defines an actor responsible for dead letters.

#default_executor

override to se different default executor, e.g.

#default_reference_class

override if different class for reference is needed.

#envelope,
#on_event

override to add custom code invocation on internal events like :terminated, :resumed, anError.

#on_message,
#pass

if you want to pass the message to next behaviour, usually Behaviour::ErrorsOnUnknownMessage

#tell

tell self a message.

#initialize_core, #on_envelope

InternalDelegations - Included

Concern::Logging - Included

#log

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

PublicDelegations - Included

TypeCheck - Included

Instance Method Details

#behaviour_definition

[ GitHub ]

  
# File 'lib/concurrent-ruby-edge/concurrent/actor/context.rb', line 163

def behaviour_definition
  Behaviour.restarting_behaviour_definition
end