Actor.emptyBehavior$, Actor.ignoringBehavior$
Constructor and Description |
---|
AutoDownBase(scala.concurrent.duration.FiniteDuration autoDownUnreachableAfter) |
Modifier and Type | Method and Description |
---|---|
ActorContext |
context()
Stores the context for this actor, including self, and sender.
|
abstract void |
down(Address node) |
void |
downOrAddPending(UniqueAddress node) |
boolean |
leader() |
scala.collection.immutable.Set<UniqueAddress> |
pendingUnreachable() |
void |
postStop()
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.
|
void |
remove(UniqueAddress node) |
scala.collection.immutable.Map<UniqueAddress,Cancellable> |
scheduledUnreachable() |
abstract Scheduler |
scheduler() |
void |
scheduleUnreachable(UniqueAddress node) |
ActorRef |
self()
The 'self' field holds the ActorRef for this actor.
|
abstract Address |
selfAddress() |
scala.collection.immutable.Set<MemberStatus> |
skipMemberStatus() |
void |
unreachableMember(Member m) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, preRestart, preStart, sender, supervisorStrategy, unhandled
public AutoDownBase(scala.concurrent.duration.FiniteDuration autoDownUnreachableAfter)
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 abstract Address selfAddress()
public abstract void down(Address node)
public abstract Scheduler scheduler()
public scala.collection.immutable.Set<MemberStatus> skipMemberStatus()
public scala.collection.immutable.Map<UniqueAddress,Cancellable> scheduledUnreachable()
public scala.collection.immutable.Set<UniqueAddress> pendingUnreachable()
public boolean leader()
public void postStop()
Actor
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
Actor
public void unreachableMember(Member m)
public void scheduleUnreachable(UniqueAddress node)
public void downOrAddPending(UniqueAddress node)
public void remove(UniqueAddress node)