Click or drag to resize
UntypedActorBecome Method
Overload List
  NameDescription
Protected methodBecome(Receive, Boolean)
Changes the Actor's behavior to become the new Receive handler. This method acts upon the behavior stack as follows:

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)
(Inherited from ActorBase.)
Protected methodBecome(UntypedReceive, Boolean)
Changes the Actor's behavior to become the new Receive(Object) handler. This method acts upon the behavior stack as follows:

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)
Top
See Also