Is there any way to create ActorSystem[T]
which will create only actors <:T
? For all other types it could throw exception or something like this.
0
votes
1 Answers
0
votes
Typed Actors: http://doc.akka.io/docs/akka/snapshot/scala/typed-actors.html.
Citing documentation: "The advantage of Typed Actors vs. Actors is that with TypedActors you have a static contract, and don't need to define your own messages, the downside is that it places some limitations on what you can do and what you can't, i.e. you cannot use become/unbecome."