Behavior.emptyBehavior$, Behavior.ignoreBehavior$, Behavior.sameBehavior$, Behavior.stoppedBehavior$, Behavior.unhandledBehavior$
Modifier and Type | Field and Description |
---|---|
static Behavior.unhandledBehavior$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
unhandledBehavior$() |
Modifier and Type | Method and Description |
---|---|
Behavior<scala.runtime.Nothing$> |
management(ActorContext<scala.runtime.Nothing$> ctx,
Signal msg)
Process an incoming
Signal and return the next behavior. |
Behavior<scala.runtime.Nothing$> |
message(ActorContext<scala.runtime.Nothing$> ctx,
scala.runtime.Nothing$ msg)
Process an incoming message and return the next behavior.
|
java.lang.String |
toString() |
canonicalize, isAlive, isUnhandled, narrow, preStart, validateAsInitial
public static final Behavior.unhandledBehavior$ MODULE$
public Behavior<scala.runtime.Nothing$> management(ActorContext<scala.runtime.Nothing$> ctx, Signal msg)
Behavior
Signal
and return the next behavior. This means
that all lifecycle hooks, ReceiveTimeout, Terminated and Failed messages
can initiate a behavior change.
The returned behavior can in addition to normal behaviors be one of the canned special objects:
* returning Stopped
will terminate this Behavior
* returning Same
designates to reuse the current Behavior
* returning Unhandled
keeps the same Behavior and signals that the message was not yet handled
Code calling this method should use Behavior$
canonicalize
to replace
the special objects with real Behaviors.
management
in class Behavior<scala.runtime.Nothing$>
ctx
- (undocumented)msg
- (undocumented)public Behavior<scala.runtime.Nothing$> message(ActorContext<scala.runtime.Nothing$> ctx, scala.runtime.Nothing$ msg)
Behavior
The returned behavior can in addition to normal behaviors be one of the canned special objects:
* returning Stopped
will terminate this Behavior
* returning Same
designates to reuse the current Behavior
* returning Unhandled
keeps the same Behavior and signals that the message was not yet handled
Code calling this method should use Behavior$
canonicalize
to replace
the special objects with real Behaviors.
public java.lang.String toString()
toString
in class java.lang.Object