What is the difference between Typed and UnTyped Actors in Akka? When to use what?

advertisements

I have tried to read the Akka documentation to find out the exact difference between Typed and Untyped actors. When to use what? I am not sure what I'm missing. Can somebody point me to something relevant or provide an answer to this question here itself?


UntypedActor is simply the name for Actor but as the Java API.

I'm very surprised that the documentation doesn't suffice:

Java:

Scala:

The difference is that TypedActors have a static interface, and the invocations of the methods on that interface is transformed into message sends. UntypedActors can receive any message.

Hope that helps.

Cheers, √