我在google看起来没有成功。有人知道是否可以使用Akka Event总线订阅并向活动演员发送事件?。
如果你想知道,是键入的演员是强制性的:(
问候。
答案 0 :(得分:1)
是的,它应该开箱即用。我只需要提供支持给定事件类型的类型化ActorRef。
class OTACTypedResponseEventBus() extends EventBus with LookupClassification{
override type Event = ...
override type Classifier = ....
override type Subscriber = akka.actor.typed.ActorRef[Event]
希望这会有所帮助。