Package org.apache.pekko.actor.dungeon
Interface ChildrenContainer
- All Known Subinterfaces:
ChildrenContainer.EmptyChildrenContainer
- All Known Implementing Classes:
ChildrenContainer.EmptyChildrenContainer$,ChildrenContainer.NormalChildrenContainer,ChildrenContainer.TerminatedChildrenContainer$,ChildrenContainer.TerminatingChildrenContainer
public interface ChildrenContainer
INTERNAL API
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic final classstatic classstatic interfacestatic classThis is the empty container, shared among all leaf actors.static classNormal children container: we do have at least one child, but none of our children are currently terminating (which is the time period between calling context.stop(child) and processing the ChildTerminated() system message).static classstatic final classstatic classstatic interfacestatic classThis is the empty container which is installed after the last child has terminated while stopping; it is necessary to distinguish from the normal empty state while calling handleChildTerminated() for the last time.static final classWaiting state: there are outstanding termination requests (i.e.static classstatic classstatic classstatic interface -
Method Summary
Modifier and TypeMethodDescriptionadd(String name, ChildRestartStats stats) scala.collection.immutable.Iterable<ActorRef>children()scala.Option<ChildStats>scala.Option<ChildRestartStats>booleanisNormal()booleanscala.collection.immutable.Iterable<ChildRestartStats>stats()
-
Method Details
-
add
-
remove
-
getByName
-
getByRef
-
children
scala.collection.immutable.Iterable<ActorRef> children() -
stats
scala.collection.immutable.Iterable<ChildRestartStats> stats() -
shallDie
-
reserve
-
unreserve
-
isTerminating
boolean isTerminating() -
isNormal
boolean isNormal()
-