Behavior.emptyBehavior$, Behavior.ignoreBehavior$, Behavior.sameBehavior$, Behavior.stoppedBehavior$, Behavior.unhandledBehavior$
Modifier and Type | Field and Description |
---|---|
static Behavior.emptyBehavior$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
emptyBehavior$() |
Modifier and Type | Method and Description |
---|---|
Behavior<java.lang.Object> |
management(ActorContext<java.lang.Object> ctx,
Signal msg)
Process an incoming
Signal and return the next behavior. |
Behavior<java.lang.Object> |
message(ActorContext<java.lang.Object> ctx,
java.lang.Object msg)
Process an incoming message and return the next behavior.
|
java.lang.String |
toString() |
canonicalize, isAlive, isUnhandled, narrow, preStart, validateAsInitial
public static final Behavior.emptyBehavior$ MODULE$
public Behavior<java.lang.Object> management(ActorContext<java.lang.Object> 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<java.lang.Object>
ctx
- (undocumented)msg
- (undocumented)public Behavior<java.lang.Object> message(ActorContext<java.lang.Object> ctx, java.lang.Object 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