class Concurrent::Actor::Envelope
Attributes
@!attribute [r] message
@return [Object] a message
@!attribute [r] future
@return [Edge::Future] a future which becomes resolved after message is processed
@!attribute [r] sender
@return [Reference, Thread] an actor or thread sending the message
@!attribute [r] address
@return [Reference] where this message will be delivered
@!attribute [r] message
@return [Object] a message
@!attribute [r] future
@return [Edge::Future] a future which becomes resolved after message is processed
@!attribute [r] sender
@return [Reference, Thread] an actor or thread sending the message
@!attribute [r] address
@return [Reference] where this message will be delivered
@!attribute [r] message
@return [Object] a message
@!attribute [r] future
@return [Edge::Future] a future which becomes resolved after message is processed
@!attribute [r] sender
@return [Reference, Thread] an actor or thread sending the message
@!attribute [r] address
@return [Reference] where this message will be delivered
@!attribute [r] message
@return [Object] a message
@!attribute [r] future
@return [Edge::Future] a future which becomes resolved after message is processed
@!attribute [r] sender
@return [Reference, Thread] an actor or thread sending the message
@!attribute [r] address
@return [Reference] where this message will be delivered
Public Class Methods
Source
# File lib/concurrent-ruby-edge/concurrent/actor/envelope.rb, line 19 def initialize(message, future, sender, address) @message = message @future = Type! future, Promises::ResolvableFuture, NilClass @sender = Type! sender, Reference, Thread @address = Type! address, Reference end
Public Instance Methods
Source
# File lib/concurrent-ruby-edge/concurrent/actor/envelope.rb, line 34 def address_path address.path end
Source
# File lib/concurrent-ruby-edge/concurrent/actor/envelope.rb, line 38 def reject!(error) future.reject error unless future.nil? end
Source
# File lib/concurrent-ruby-edge/concurrent/actor/envelope.rb, line 26 def sender_path if sender.is_a? Reference sender.path else sender.to_s end end