【发布时间】:2017-02-25 22:58:54
【问题描述】:
来自此 Akka 序列化文档 http://doc.akka.io/docs/akka/2.4/scala/serialization.html
在序列化actor方面,我发现这是反序列化的:
val deserializedActorRef = extendedSystem.provider.resolveActorRef(identifier)
但是,当我尝试使用我创建的 ActorSystem 时:
val extendedSystem = ActorSystem("myactorsystem")
我收到了这条消息:
trait ActorRefFactory 中的方法提供者无法在 akka.actor.ActorSystem
不允许访问受保护的方法提供程序,因为 在包 PackageName 中包含类 ClassName 不是 包 actor 中 trait ActorRefFactory 的子类 where 目标已定义
在使用 resolveActorRef 函数之前我应该做些什么?
【问题讨论】: