ReceiveActorBecome Method |
Name | Description | |
---|---|---|
![]() | Become(Action, Boolean) | |
![]() | Become(Receive, Boolean) |
Changes the Actor's behavior to become the new Receive handler.
This method acts upon the behavior stack as follows:
(Inherited from ActorBase.)if discardOld==true it will replace the current behavior (i.e. the top element) if discardOld==false it will keep the current behavior and push the given one atop The default of replacing the current behavior on the stack has been chosen to avoid memory leaks in case client code is written without consulting this documentation first (i.e. always pushing new behaviors and never issuing an Unbecome) |
![]() | Become(UntypedReceive, Boolean) |
Changes the Actor's behavior to become the new Receive(Object) handler.
This method acts upon the behavior stack as follows:
(Inherited from UntypedActor.)if discardOld==true it will replace the current behavior (i.e. the top element) if discardOld==false it will keep the current behavior and push the given one atop The default of replacing the current behavior on the stack has been chosen to avoid memory leaks in case client code is written without consulting this documentation first (i.e. always pushing new behaviors and never issuing an Unbecome) |