protected Object writeReplace() throws java.io.ObjectStreamException { return RemoteChannelProxyFactoryService.create(this, null); } ////////////////////////////
public static <Message> SendPort<Message> create(SendPort<Message> channel, Object globalId) { return factory.create(channel, globalId); }
@Override protected Object writeReplace() throws java.io.ObjectStreamException { if (actor.isMigrating()) return new SerializedMailbox(config); if (!actor.isStarted()) throw new IllegalStateException("Owning actor " + actor + " not started"); return RemoteChannelProxyFactoryService.create(this, actor.getGlobalId()); }
protected RemoteActor(ActorRef<Message> actor) { super(actor.getName(), RemoteChannelProxyFactoryService.create(actor.getImpl().mailbox(), ((Actor) actor.getImpl()).getGlobalId()), actor); this.actor = actor.getImpl(); }