paul
paul

Reputation: 13471

Akka event bus with typed actor

I´m looking in google without success. Anybody knows if it´s possible use Akka Event bus to subscribe and send events to typed actors?.

And if you wonder, yes typed actors are mandatory :(

Regards.

Upvotes: 2

Views: 569

Answers (1)

Pawel Wlodarski
Pawel Wlodarski

Reputation: 59

Yes it should work out of the box. I've just had to provide typed ActorRef which supports given Event type.

class OTACTypedResponseEventBus() extends EventBus with LookupClassification{
    override type Event = ...
    override type Classifier = ....
    override type Subscriber = akka.actor.typed.ActorRef[Event]

Hope this helps.

Upvotes: 2

Related Questions