Package akka.actor.dungeon
Class ChildrenContainer.NormalChildrenContainer
- java.lang.Object
-
- akka.actor.dungeon.ChildrenContainer.NormalChildrenContainer
-
- All Implemented Interfaces:
ChildrenContainer
- Enclosing interface:
- ChildrenContainer
public static class ChildrenContainer.NormalChildrenContainer extends java.lang.Object implements ChildrenContainer
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).
-
-
Nested Class Summary
-
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
-
-
Constructor Summary
Constructors Constructor Description NormalChildrenContainer(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
ChildrenContainer
remove(ActorRef child)
ChildrenContainer
reserve(java.lang.String name)
ChildrenContainer
shallDie(ActorRef actor)
scala.collection.immutable.Iterable<ChildRestartStats>
stats()
java.lang.String
toString()
ChildrenContainer
unreserve(java.lang.String name)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.actor.dungeon.ChildrenContainer
isNormal, isTerminating
-
-
-
-
Constructor Detail
-
NormalChildrenContainer
public NormalChildrenContainer(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c)
-
-
Method Detail
-
c
public scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c()
-
add
public ChildrenContainer add(java.lang.String name, ChildRestartStats stats)
- Specified by:
add
in interfaceChildrenContainer
-
remove
public ChildrenContainer remove(ActorRef child)
- Specified by:
remove
in interfaceChildrenContainer
-
getByName
public scala.Option<ChildStats> getByName(java.lang.String name)
- Specified by:
getByName
in interfaceChildrenContainer
-
getByRef
public scala.Option<ChildRestartStats> getByRef(ActorRef actor)
- Specified by:
getByRef
in interfaceChildrenContainer
-
children
public scala.collection.immutable.Iterable<ActorRef> children()
- Specified by:
children
in interfaceChildrenContainer
-
stats
public scala.collection.immutable.Iterable<ChildRestartStats> stats()
- Specified by:
stats
in interfaceChildrenContainer
-
shallDie
public ChildrenContainer shallDie(ActorRef actor)
- Specified by:
shallDie
in interfaceChildrenContainer
-
reserve
public ChildrenContainer reserve(java.lang.String name)
- Specified by:
reserve
in interfaceChildrenContainer
-
unreserve
public ChildrenContainer unreserve(java.lang.String name)
- Specified by:
unreserve
in interfaceChildrenContainer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-