Package org.apache.pekko.actor.dungeon
Interface DeathWatch
public interface DeathWatch
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddressTerminated(Address address) voidaddWatcher(ActorRef watchee, ActorRef watcher) voidcheckWatchingSame(org.apache.pekko.actor.InternalActorRef ref, scala.Option<Object> newMessage) Call only if it was checked before that `watching contains ref`booleanisWatching(ActorRef ref) <T> TmaintainAddressTerminatedSubscription(ActorRef change, scala.Function0<T> block) Starts subscription to AddressTerminated if not already subscribing and the block adds a non-local ref to watching or watchedBy.<T> ActorRefvoidvoidremWatcher(ActorRef watchee, ActorRef watcher) voidvoidvoidterminatedQueued_$eq(scala.collection.immutable.Map<ActorRef, scala.Option<Object>> x$1) voidterminatedQueuedFor(ActorRef subject, scala.Option<Object> customMessage) voidvoidunwatchWatchedActors(Actor actor) voidupdateWatching(org.apache.pekko.actor.InternalActorRef ref, scala.Option<Object> newMessage) voidwatchedActorTerminated(ActorRef actor, boolean existenceConfirmed, boolean addressTerminated) When this actor is watching the subject ofpekko.actor.Terminatedmessage it will be propagated to user's receive.voidwatchedBy_$eq(scala.collection.immutable.Set<ActorRef> x$1) voidwatching_$eq(scala.collection.immutable.Map<ActorRef, scala.Option<Object>> x$1)
-
Method Details
-
addWatcher
-
addressTerminated
-
checkWatchingSame
void checkWatchingSame(org.apache.pekko.actor.InternalActorRef ref, scala.Option<Object> newMessage) Call only if it was checked before that `watching contains ref` -
isWatching
-
maintainAddressTerminatedSubscription
Starts subscription to AddressTerminated if not already subscribing and the block adds a non-local ref to watching or watchedBy. Ends subscription to AddressTerminated if subscribing and the block removes the last non-local ref from watching and watchedBy. -
maintainAddressTerminatedSubscription$default$1
-
receivedTerminated
-
remWatcher
-
subscribeAddressTerminated
void subscribeAddressTerminated() -
tellWatchersWeDied
void tellWatchersWeDied() -
terminatedQueuedFor
-
terminatedQueued_$eq
-
unsubscribeAddressTerminated
void unsubscribeAddressTerminated() -
unwatch
-
unwatchWatchedActors
-
updateWatching
-
watch
-
watchWith
-
watchedActorTerminated
When this actor is watching the subject ofpekko.actor.Terminatedmessage it will be propagated to user's receive. -
watchedBy_$eq
-
watching_$eq
-