Actor.emptyBehavior$| Constructor and Description |
|---|
DeadLetterListener() |
| Modifier and Type | Method and Description |
|---|---|
int |
count() |
EventStream |
eventStream() |
int |
maxCount() |
void |
postRestart(java.lang.Throwable reason)
User overridable callback: By default it calls
preStart(). |
void |
postStop()
User overridable callback.
|
void |
preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
User overridable callback: '''By default it disposes of all children and then calls
postStop().''' |
void |
preStart()
User overridable callback.
|
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive()
This defines the initial actor behavior, it must return a partial function
with the actor logic.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, context, self, sender, supervisorStrategy, unhandledpublic EventStream eventStream()
public int maxCount()
public int count()
public void preStart()
Actorpublic void postRestart(java.lang.Throwable reason)
ActorpreStart().postRestart in interface Actorreason - the Throwable that caused the restart to happen
Is called right AFTER restart on the newly created Actor to allow reinitialization after an Actor crash.public void preRestart(java.lang.Throwable reason,
scala.Option<java.lang.Object> message)
ActorpostStop().'''preRestart in interface Actorreason - the Throwable that caused the restart to happenmessage - optionally the current message the actor processed when failing, if applicable
Is called on a crashed Actor right BEFORE it is restarted to allow clean
up of resources before Actor is terminated.public void postStop()
Actor