akka.actor.dungeon
Class ChildrenContainer.TerminatingChildrenContainer
java.lang.Object
akka.actor.dungeon.ChildrenContainer.TerminatingChildrenContainer
- All Implemented Interfaces:
- ChildrenContainer, java.io.Serializable, scala.Equals, scala.Product
- Enclosing interface:
- ChildrenContainer
public static class ChildrenContainer.TerminatingChildrenContainer
- extends java.lang.Object
- implements ChildrenContainer, scala.Product, scala.Serializable
Waiting state: there are outstanding termination requests (i.e. context.stop(child)
was called but the corresponding ChildTerminated() system message has not yet been
processed). There could be no specific reason (UserRequested), we could be Restarting
or Terminating.
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”.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface akka.actor.dungeon.ChildrenContainer |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface scala.Product |
productArity, productElement, productIterator, productPrefix |
Methods inherited from interface scala.Equals |
canEqual, equals |
ChildrenContainer.TerminatingChildrenContainer
public ChildrenContainer.TerminatingChildrenContainer(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c,
scala.collection.immutable.Set<ActorRef> toDie,
ChildrenContainer.SuspendReason reason)
c
public scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c()
toDie
public scala.collection.immutable.Set<ActorRef> toDie()
reason
public ChildrenContainer.SuspendReason reason()
add
public ChildrenContainer add(java.lang.String name,
ChildRestartStats stats)
- Specified by:
add
in interface ChildrenContainer
remove
public ChildrenContainer remove(ActorRef child)
- Specified by:
remove
in interface ChildrenContainer
getByName
public scala.Option<ChildStats> getByName(java.lang.String name)
- Specified by:
getByName
in interface ChildrenContainer
getByRef
public scala.Option<ChildRestartStats> getByRef(ActorRef actor)
- Specified by:
getByRef
in interface ChildrenContainer
children
public scala.collection.immutable.Iterable<ActorRef> children()
- Specified by:
children
in interface ChildrenContainer
stats
public scala.collection.immutable.Iterable<ChildRestartStats> stats()
- Specified by:
stats
in interface ChildrenContainer
shallDie
public ChildrenContainer shallDie(ActorRef actor)
- Specified by:
shallDie
in interface ChildrenContainer
reserve
public ChildrenContainer reserve(java.lang.String name)
- Specified by:
reserve
in interface ChildrenContainer
unreserve
public ChildrenContainer unreserve(java.lang.String name)
- Specified by:
unreserve
in interface ChildrenContainer
isTerminating
public boolean isTerminating()
- Specified by:
isTerminating
in interface ChildrenContainer
isNormal
public boolean isNormal()
- Specified by:
isNormal
in interface ChildrenContainer
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object