| Access | Constructor and Description |
|---|---|
| protected | ThreadContainer(boolean
true for a shared container, false for a container
owned by the current thread shared)Creates a ThreadContainer. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final Stream | |
| public String | |
| protected void | |
| protected void | |
| public ThreadContainer | |
| public final void | |
| public ScopedValueContainer. | |
| public long | |
| public abstract Stream | |
| public String |
| ThreadContainer | back to summary |
|---|---|
| protected ThreadContainer(boolean shared) Creates a ThreadContainer.
| |
| add | back to summary |
|---|---|
| public final void add(Thread thread) Adds a thread to this container. This method should be invoked before the thread executes. | |
| children | back to summary |
|---|---|
| public final Stream Return the stream of children of this container. | |
| name | back to summary |
|---|---|
| public String name() Return the name of this container, may be null. | |
| onExit | back to summary |
|---|---|
| protected void onExit(Thread thread) Invoked by | |
| onStart | back to summary |
|---|---|
| protected void onStart(Thread thread) Invoked by | |
| parent | back to summary |
|---|---|
| public ThreadContainer parent() Returns the parent of this container or null if this is the root container. | |
| remove | back to summary |
|---|---|
| public final void remove(Thread thread) Remove a thread from this container. This method can be invoked by the thread itself as it terminates, or it can be invoked by another thread after the given thread has terminated (or failed to start). | |
| scopedValueBindings | back to summary |
|---|---|
| public ScopedValueContainer. The scoped values captured when the thread container was created. | |
| threadCount | back to summary |
|---|---|
| public long threadCount() Return a count of the number of threads in this container. | |
| threads | back to summary |
|---|---|
| public abstract Stream Returns a stream of the live threads in this container. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |