score:101
Accepted answer
From an Actor
you can use self
to get the ActorRef
.
val actorName = self.path.name
http://doc.akka.io/api/akka/2.2.3/#akka.actor.Actor
Source: stackoverflow.com
Related Query
- How can I get the name of an Akka actor from within the actor itself?
- How to get a Promise (or Future) by asking an Akka Actor considering that the result is NOT available as a response from the same message
- How can I get the ActorRef from the Receptionist so my actor can send messages to that actor
- How do I get the Scala version from within Scala itself?
- How to get Akka actor by name as an ActorRef?
- AWS Lambda - How to get the topic name of data coming from AWS IOT
- How to get the actor system reference from inside the actor
- How do I get the absolute remote actor url from inside the actor?
- How to get the table name from Spark SQL Query [PySpark]?
- How can I get the max of an arbitrary property from a list in Scala?
- How to create an Akka Actor given the class name
- How do I get the CPU utilization of an akka actor
- How can I find the statements in a Scala program from within a compiler plugin?
- How can I get a value from a the ScalaFX thread?
- Scala: How can I get the name of a variable class in a function?
- How can I resolve conflicting actor systems while testing akka-http and akka actors at the same spec file?
- How can I get the binary data from a Class[_] object?
- Scala akka typed: how to get ActorRef to Actor from it's instance and send message itself?
- Scala macros: How can I get a list of the objects within a given package that inherit some trait?
- How to get the details of user who submitted the spark job from within the job context?
- Get underlying Actor from ActorRef with the Akka Test Kit
- How to get the file name from DStream of Spark StreamingContext?
- How get actor physical path from akka actor?
- how can we get the result from various actors and then send the result from all the actors to one response in play 2.2.0?
- In Scala, how can I get the max date from an array of maps where one of the keys in the map is "date"?
- How to get the class of a trait within an object defined in scala from within a java class?
- How can I send a message to my akka actor system's event stream without addressing the message to any actor in particular?
- How can I parse the json body from from an Akka Client-Side HttpResponse
- How can I throttle messages to the IO(Tcp) actor in Akka
- Scala - How to get all the fields name from an Avro schema?
More Query from same tag
- how to convert RDD[(String, Any)] to Array(Row)?
- AspectJ can't work on Scala function literal?
- How to access Play Framework 2.4 guice Injector in application?
- Safe API to transform HTML (Java)
- How to sbt publish multi module project
- Scala List Class error
- Why cant this flatMap work?
- sbt Scalatest NoClassDefFoundError
- How to map a RDD to another RDD with Scala, in Spark?
- Scala List into Seq
- Struct data type when creating dataframe with createDataFrame in Scala
- Import Scala from Groovy
- Trying to get Scala imports with hiding clause and catch-all
- SBT Scala cross versions, with aggregation and dependencies
- What's the best cli parser for scala
- How to set aws access key and aws secret key inside spark-shell
- How to manage user messages in Java/Scala?
- Sequence map throws an error: NoSuchElementException: next on empty iterator
- Scala - custom Marshaller for case class
- How to read .csv file using BlobId
- scala macro how to convert `HList` to function args
- How to handle timeout from a WS call inside an Akka Actor
- How to test for additional properties of expected Exceptions using ScalaTest
- Play2 create client websocket
- Divide Spark DataFrame rows into multiple rows depending on the size of Map type column
- Scala: function declaration when doing currying
- Spark Scala map fails with custom function
- Move Zeroes in Scala
- pyspark how to drop rdd column like in scala .drop
- Unable to connect to MongoDB Atlas using Scala Driver