Package akka.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 Classes Modifier and Type Interface Description static class
ChildrenContainer.ChildrenIterable
static class
ChildrenContainer.ChildRestartsIterable
static class
ChildrenContainer.Creation
static class
ChildrenContainer.Creation$
static interface
ChildrenContainer.EmptyChildrenContainer
static class
ChildrenContainer.EmptyChildrenContainer$
This is the empty container, shared among all leaf actors.static class
ChildrenContainer.NormalChildrenContainer
Normal 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 class
ChildrenContainer.NormalChildrenContainer$
static class
ChildrenContainer.Recreation
static class
ChildrenContainer.Recreation$
static interface
ChildrenContainer.SuspendReason
static class
ChildrenContainer.TerminatedChildrenContainer$
This 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 class
ChildrenContainer.TerminatingChildrenContainer
Waiting state: there are outstanding termination requests (i.e.static class
ChildrenContainer.TerminatingChildrenContainer$
static class
ChildrenContainer.Termination$
static class
ChildrenContainer.UserRequest$
static interface
ChildrenContainer.WaitingForChildren
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChildrenContainer
add(java.lang.String name, ChildRestartStats stats)
scala.collection.immutable.Iterable<ActorRef>
children()
scala.Option<ChildStats>
getByName(java.lang.String name)
scala.Option<ChildRestartStats>
getByRef(ActorRef actor)
boolean
isNormal()
boolean
isTerminating()
ChildrenContainer
remove(ActorRef child)
ChildrenContainer
reserve(java.lang.String name)
ChildrenContainer
shallDie(ActorRef actor)
scala.collection.immutable.Iterable<ChildRestartStats>
stats()
ChildrenContainer
unreserve(java.lang.String name)
-
-
-
Method Detail
-
add
ChildrenContainer add(java.lang.String name, ChildRestartStats stats)
-
remove
ChildrenContainer remove(ActorRef child)
-
getByName
scala.Option<ChildStats> getByName(java.lang.String name)
-
getByRef
scala.Option<ChildRestartStats> getByRef(ActorRef actor)
-
children
scala.collection.immutable.Iterable<ActorRef> children()
-
stats
scala.collection.immutable.Iterable<ChildRestartStats> stats()
-
shallDie
ChildrenContainer shallDie(ActorRef actor)
-
reserve
ChildrenContainer reserve(java.lang.String name)
-
unreserve
ChildrenContainer unreserve(java.lang.String name)
-
isTerminating
boolean isTerminating()
-
isNormal
boolean isNormal()
-
-