Fixed a typo in a generic type declaration in tutorial (#23559)
This commit is contained in:
parent
369763f065
commit
95b0d406d6
1 changed files with 1 additions and 1 deletions
|
|
@ -160,7 +160,7 @@ Our device group actor needs to include functionality that:
|
|||
1. Starts watching new device actors when they are created.
|
||||
2. Removes a device actor from the @scala[`Map[String, ActorRef]`] @java[`Map<String, ActorRef>`] — which maps devices to device actors — when the notification indicates it has stopped.
|
||||
|
||||
Unfortunately, the `Terminated` message only contains the `ActorRef` of the child actor. We need the actor's ID to remove it from the map of existing device to device actor mappings. To be able to do this removal, we need to introduce another placeholder, @scala[`Map[String, ActorRef]`] @java[`Map<String, ActorRef>`], that allow us to find out the device ID corresponding to a given `ActorRef`.
|
||||
Unfortunately, the `Terminated` message only contains the `ActorRef` of the child actor. We need the actor's ID to remove it from the map of existing device to device actor mappings. To be able to do this removal, we need to introduce another placeholder, @scala[`Map[ActorRef, String]`] @java[`Map<ActorRef, String>`], that allow us to find out the device ID corresponding to a given `ActorRef`.
|
||||
|
||||
Adding the functionality to identify the actor results in this:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue