Package 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 final class ChildrenContainer.TerminatingChildrenContainer extends java.lang.Object implements ChildrenContainer, scala.Product, java.io.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 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 TerminatingChildrenContainer(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c, scala.collection.immutable.Set<ActorRef> toDie, ChildrenContainer.SuspendReason reason)
-
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()
boolean
canEqual(java.lang.Object x$1)
scala.collection.immutable.Iterable<ActorRef>
children()
ChildrenContainer.TerminatingChildrenContainer
copy(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c, scala.collection.immutable.Set<ActorRef> toDie, ChildrenContainer.SuspendReason reason)
scala.collection.immutable.TreeMap<java.lang.String,ChildStats>
copy$default$1()
scala.collection.immutable.Set<ActorRef>
copy$default$2()
ChildrenContainer.SuspendReason
copy$default$3()
boolean
equals(java.lang.Object x$1)
scala.Option<ChildStats>
getByName(java.lang.String name)
scala.Option<ChildRestartStats>
getByRef(ActorRef actor)
int
hashCode()
boolean
isNormal()
boolean
isTerminating()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
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)
-
-
-
Constructor Detail
-
TerminatingChildrenContainer
public TerminatingChildrenContainer(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c, scala.collection.immutable.Set<ActorRef> toDie, ChildrenContainer.SuspendReason reason)
-
-
Method Detail
-
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 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
-
isTerminating
public boolean isTerminating()
- Specified by:
isTerminating
in interfaceChildrenContainer
-
isNormal
public boolean isNormal()
- Specified by:
isNormal
in interfaceChildrenContainer
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
copy
public ChildrenContainer.TerminatingChildrenContainer copy(scala.collection.immutable.TreeMap<java.lang.String,ChildStats> c, scala.collection.immutable.Set<ActorRef> toDie, ChildrenContainer.SuspendReason reason)
-
copy$default$1
public scala.collection.immutable.TreeMap<java.lang.String,ChildStats> copy$default$1()
-
copy$default$2
public scala.collection.immutable.Set<ActorRef> copy$default$2()
-
copy$default$3
public ChildrenContainer.SuspendReason copy$default$3()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-