Class: DCell::RPB

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

Instance Method Summary collapse

Methods inherited from Celluloid::BlockProxy

_load

Constructor Details

#initialize(id, mailbox, execution, arguments) ⇒ RPB

Returns a new instance of RPB.



5
6
7
# File 'lib/dcell/rpc.rb', line 5

def initialize(id, mailbox, execution, arguments)
  @id, @mailbox, @execution, @arguments = id, mailbox, execution, arguments
end

Instance Method Details

#_dump(level) ⇒ Object

Custom marshaller for compatibility with Celluloid::Mailbox marshalling



10
11
12
13
# File 'lib/dcell/rpc.rb', line 10

def _dump(level)
  payload = Marshal.dump [@mailbox, @execution, @arguments]
  "#{@id}:rpb:#{payload}"
end