public class ActivationTracker extends java.lang.Object implements Actor, ActorLogging
Modifier and Type | Class and Description |
---|---|
class |
ActivationTracker.ActivationStateMachine
A state machine that keeps track of the endpoint activation status of an actor.
|
Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
ActivationTracker() |
Modifier and Type | Method and Description |
---|---|
scala.collection.mutable.WeakHashMap<ActorRef,ActivationTracker.ActivationStateMachine> |
activations() |
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
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.
|
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandled
log
public ActorContext context()
Actor
forward
.
WARNING: Only valid within the Actor itself, so do not close over it and publish it to other threads!
ActorContext
is the Scala API. getContext
returns a
UntypedActorContext
, which is the Java API of the actor
context.
public final ActorRef self()
Actor
self ! message
public scala.collection.mutable.WeakHashMap<ActorRef,ActivationTracker.ActivationStateMachine> activations()