Class: Celluloid::Mailbox

Inherits:
Object
  • Object
show all
Defined in:
lib/dcell/celluloid_ext.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

._load(string) ⇒ Object

Create a mailbox proxy object which routes messages over DCell’s overlay network and back to the original mailbox



53
54
55
# File 'lib/dcell/celluloid_ext.rb', line 53

def self._load(string)
  DCell::MailboxProxy._load(string)
end

Instance Method Details

#_dump(level) ⇒ Object

This custom dumper registers actors with the DCell registry so they can be reached remotely.



46
47
48
49
# File 'lib/dcell/celluloid_ext.rb', line 46

def _dump(level)
  mailbox_id = DCell::Router.register self
  "#{mailbox_id}@#{DCell.id}"
end