public static final class ChildrenContainer.TerminatingChildrenContainer extends java.lang.Object implements ChildrenContainer, scala.Product, scala.Serializable
Removing the last child which was supposed to be terminating will return a different type of container, depending on whether or not children are left and whether or not the reason was “Terminating”.
ChildrenContainer.ChildrenIterable, ChildrenContainer.ChildRestartsIterable, ChildrenContainer.Creation, ChildrenContainer.Creation$, ChildrenContainer.EmptyChildrenContainer, ChildrenContainer.EmptyChildrenContainer$, ChildrenContainer.NormalChildrenContainer, ChildrenContainer.NormalChildrenContainer$, ChildrenContainer.Recreation, ChildrenContainer.Recreation$, ChildrenContainer.SuspendReason, ChildrenContainer.TerminatedChildrenContainer$, ChildrenContainer.TerminatingChildrenContainer, ChildrenContainer.TerminatingChildrenContainer$, ChildrenContainer.Termination$, ChildrenContainer.UserRequest$, ChildrenContainer.WaitingForChildren
Constructor and Description |
---|
TerminatingChildrenContainer(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c,
scala.collection.immutable.Set<ActorRef> toDie,
ChildrenContainer.SuspendReason reason) |
Modifier and Type | Method and Description |
---|---|
ChildrenContainer |
add(java.lang.String name,
ChildRestartStats stats) |
scala.collection.immutable.TreeMap<java.lang.String,ChildStats> |
c() |
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.SuspendReason |
reason() |
ChildrenContainer |
remove(ActorRef child) |
ChildrenContainer |
reserve(java.lang.String name) |
ChildrenContainer |
shallDie(ActorRef actor) |
scala.collection.immutable.Iterable<ChildRestartStats> |
stats() |
scala.collection.immutable.Set<ActorRef> |
toDie() |
java.lang.String |
toString() |
ChildrenContainer |
unreserve(java.lang.String name) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public TerminatingChildrenContainer(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c, scala.collection.immutable.Set<ActorRef> toDie, ChildrenContainer.SuspendReason reason)
public scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c()
public scala.collection.immutable.Set<ActorRef> toDie()
public ChildrenContainer.SuspendReason reason()
public ChildrenContainer add(java.lang.String name, ChildRestartStats stats)
add
in interface ChildrenContainer
public ChildrenContainer remove(ActorRef child)
remove
in interface ChildrenContainer
public scala.Option<ChildStats> getByName(java.lang.String name)
getByName
in interface ChildrenContainer
public scala.Option<ChildRestartStats> getByRef(ActorRef actor)
getByRef
in interface ChildrenContainer
public scala.collection.immutable.Iterable<ActorRef> children()
children
in interface ChildrenContainer
public scala.collection.immutable.Iterable<ChildRestartStats> stats()
stats
in interface ChildrenContainer
public ChildrenContainer shallDie(ActorRef actor)
shallDie
in interface ChildrenContainer
public ChildrenContainer reserve(java.lang.String name)
reserve
in interface ChildrenContainer
public ChildrenContainer unreserve(java.lang.String name)
unreserve
in interface ChildrenContainer
public boolean isTerminating()
isTerminating
in interface ChildrenContainer
public boolean isNormal()
isNormal
in interface ChildrenContainer
public java.lang.String toString()
toString
in class java.lang.Object