1

How is it possible to obtain the name of an ActorRef?

Suppose the following actor is declared:

val a = system.actorOf(Props(new X(false)), name = "a")

How the name("a") can be retrieved from an ActorRef of typeX?

brandbir
  • 305
  • 3
  • 14

1 Answers1

5

ActorPath.name has it:

a.path.name
tuxdna
  • 8,257
  • 4
  • 43
  • 61