lib/dcell/actor_proxy.rb in dcell-0.16.0 vs lib/dcell/actor_proxy.rb in dcell-0.16.1
- old
+ new
@@ -1,8 +1,8 @@
module DCell
# Proxy object for actors that live on remote nodes
- class ActorProxy < Celluloid::ActorProxy; end
+ class CellProxy < Celluloid::CellProxy; end
class ThreadHandleProxy
def kill
raise NotImplementedError, "remote kill not supported"
end
@@ -21,9 +21,10 @@
class Actor
def initialize(mailbox)
@mailbox = mailbox
@thread = ThreadHandleProxy.new
@subject = SubjectProxy.new
+ @proxy = Celluloid::ActorProxy.new(@thread, @mailbox)
end
- attr_reader :mailbox, :thread, :subject
+ attr_reader :mailbox, :thread, :subject, :proxy
end
end