Class: DCell::RPBC

Inherits:
Celluloid::BlockCall show all
Defined in:
lib/dcell/rpc.rb

Instance Method Summary collapse

Methods inherited from Celluloid::BlockCall

_load

Constructor Details

#initialize(id, block_proxy, sender, arguments) ⇒ RPBC

Returns a new instance of RPBC.



17
18
19
# File 'lib/dcell/rpc.rb', line 17

def initialize(id, block_proxy, sender, arguments)
  @id, @block_proxy, @sender, @arguments = id, block_proxy, sender, arguments
end

Instance Method Details

#_dump(level) ⇒ Object

Custom marshaller for compatibility with Celluloid::Mailbox marshalling



22
23
24
25
# File 'lib/dcell/rpc.rb', line 22

def _dump(level)
  payload = Marshal.dump [@block_proxy, @sender, @arguments]
  "#{@id}:rpbc:#{payload}"
end