Module: Concurrent::Actor::InternalDelegations
Instance Method Summary
collapse
#context_class, #executor, #name, #parent, #path, #reference
Instance Method Details
#behaviour(behaviour_class) ⇒ Object
49
50
51
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 49
def behaviour(behaviour_class)
core.behaviour(behaviour_class)
end
|
#behaviour!(behaviour_class) ⇒ Object
54
55
56
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 54
def behaviour!(behaviour_class)
core.behaviour!(behaviour_class)
end
|
#children ⇒ Object
8
9
10
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 8
def children
core.children
end
|
44
45
46
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 44
def context
core.context
end
|
#dead_letter_routing ⇒ Object
34
35
36
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 34
def dead_letter_routing
context.dead_letter_routing
end
|
#log(level, message = nil, &block) ⇒ Object
29
30
31
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 29
def log(level, message = nil, &block)
core.log(level, message, &block)
end
|
#redirect(reference, envelope = self.envelope) ⇒ Object
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
|
#terminate!(reason = nil) ⇒ Object
13
14
15
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 13
def terminate!(reason = nil)
behaviour!(Behaviour::Termination).terminate!(reason)
end
|
#terminated? ⇒ Boolean
18
19
20
|
# File 'lib/concurrent/actor/internal_delegations.rb', line 18
def terminated?
behaviour!(Behaviour::Termination).terminated?
end
|