| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv static class | Joiners.
A joiner that returns a list of all results when all subtasks complete successfully. |
| pack-priv static class | Joiners.
A joiner that returns the result of the first subtask to complete successfully. |
| pack-priv static class | Joiners.
A joiner that that waits for all successful subtasks. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static StructuredTaskScope. | ensureCompleted(StructuredTaskScope.
Throws IllegalArgumentException if the subtask has not completed. |
| private static void | ensureUnavailable(StructuredTaskScope.
Throws IllegalArgumentException if the subtask is not in the UNAVAILABLE state. |
| Joiners | back to summary |
|---|---|
| private Joiners() | |
| ensureCompleted | back to summary |
|---|---|
| private static StructuredTaskScope. Throws IllegalArgumentException if the subtask has not completed. | |
| ensureUnavailable | back to summary |
|---|---|
| private static void ensureUnavailable(StructuredTaskScope. Throws IllegalArgumentException if the subtask is not in the UNAVAILABLE state. | |
| Modifier and Type | Field and Description |
|---|---|
| private final Predicate | |
| private List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | onComplete(StructuredTaskScope.
Overrides default java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. |
| public boolean | onFork(StructuredTaskScope.
Overrides default java. Invoked by |
| public List | result()
Implements java. Invoked by the |
| public List | timeout()
Implements java. Invoked by the |
| isDone | back to summary |
|---|---|
| private final Predicate<? super StructuredTaskScope. | |
| subtasks | back to summary |
|---|---|
| private List<StructuredTaskScope. | |
| AllSubtasks | back to summary |
|---|---|
| pack-priv AllSubtasks(Predicate<? super StructuredTaskScope. | |
| onComplete | back to summary |
|---|---|
| public boolean onComplete(StructuredTaskScope. Overrides default java. Doc from java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. This method is not invoked by subtasks that complete after the scope is cancelled.
| |
| onFork | back to summary |
|---|---|
| public boolean onFork(StructuredTaskScope. Overrides default java. Doc from java. Invoked by
| |
| result | back to summary |
|---|---|
| public List Implements java. Doc from java. Invoked by the This method will be called at most once, by the
| |
| timeout | back to summary |
|---|---|
| public List Implements java. Doc from java. Invoked by the If the outcome is an exception, this method throws the exception with a
This method will be called at most once, by the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private static final VarHandle | |
| private volatile Throwable | |
| private List |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | onComplete(StructuredTaskScope.
Overrides default java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. |
| public boolean | onFork(StructuredTaskScope.
Overrides default java. Invoked by |
| public List | result()
Implements java. Invoked by the |
| public List | timeout()
Implements java. Invoked by the |
| esf | back to summary |
|---|---|
| private final Function<Throwable, R_X> esf | |
| FIRST_EXCEPTION | back to summary |
|---|---|
| private static final VarHandle FIRST_EXCEPTION | |
| firstException | back to summary |
|---|---|
| private volatile Throwable firstException | |
| subtasks | back to summary |
|---|---|
| private List<StructuredTaskScope. | |
| AllSuccessful | back to summary |
|---|---|
| pack-priv AllSuccessful(Function<Throwable, R_X> esf) | |
| onComplete | back to summary |
|---|---|
| public boolean onComplete(StructuredTaskScope. Overrides default java. Doc from java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. This method is not invoked by subtasks that complete after the scope is cancelled.
| |
| onFork | back to summary |
|---|---|
| public boolean onFork(StructuredTaskScope. Overrides default java. Doc from java. Invoked by
| |
| result | back to summary |
|---|---|
| public List Implements java. Doc from java. Invoked by the This method will be called at most once, by the
| |
| timeout | back to summary |
|---|---|
| public List Implements java. Doc from java. Invoked by the If the outcome is an exception, this method throws the exception with a
This method will be called at most once, by the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private static final VarHandle | |
| private volatile StructuredTaskScope. | |
| private static final Comparator |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | onComplete(StructuredTaskScope.
Overrides default java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. |
| public T | result()
Implements java. Invoked by the |
| private static int | |
| public T | timeout()
Implements java. Invoked by the |
| esf | back to summary |
|---|---|
| private final Function<Throwable, R_X> esf | |
| SUBTASK | back to summary |
|---|---|
| private static final VarHandle SUBTASK | |
| subtask | back to summary |
|---|---|
| private volatile StructuredTaskScope. | |
| SUBTASK_STATE_COMPARATOR | back to summary |
|---|---|
| private static final Comparator<StructuredTaskScope. | |
| AnySuccessful | back to summary |
|---|---|
| pack-priv AnySuccessful(Function<Throwable, R_X> esf) | |
| onComplete | back to summary |
|---|---|
| public boolean onComplete(StructuredTaskScope. Overrides default java. Doc from java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. This method is not invoked by subtasks that complete after the scope is cancelled.
| |
| result | back to summary |
|---|---|
| public T result() throws Joiner:R_X Implements java. Doc from java. Invoked by the This method will be called at most once, by the
| |
| stateToInt | back to summary |
|---|---|
| private static int stateToInt(StructuredTaskScope. Maps a Subtask.State to an int that can be compared. | |
| timeout | back to summary |
|---|---|
| public T timeout() throws Joiner:R_X Implements java. Doc from java. Invoked by the If the outcome is an exception, this method throws the exception with a
This method will be called at most once, by the
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Function | |
| private static final VarHandle | |
| private volatile Throwable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | onComplete(StructuredTaskScope.
Overrides default java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. |
| public Void | result()
Implements java. Invoked by the |
| public Void | timeout()
Implements java. Invoked by the |
| esf | back to summary |
|---|---|
| private final Function<Throwable, R_X> esf | |
| FIRST_EXCEPTION | back to summary |
|---|---|
| private static final VarHandle FIRST_EXCEPTION | |
| firstException | back to summary |
|---|---|
| private volatile Throwable firstException | |
| AwaitSuccessful | back to summary |
|---|---|
| pack-priv AwaitSuccessful(Function<Throwable, R_X> esf) | |
| onComplete | back to summary |
|---|---|
| public boolean onComplete(StructuredTaskScope. Overrides default java. Doc from java. Invoked by the thread that executed a subtask after the subtask completes successfully or fails with an exception. This method is not invoked by subtasks that complete after the scope is cancelled.
| |
| result | back to summary |
|---|---|
| public Void result() throws Joiner:R_X Implements java. Doc from java. Invoked by the This method will be called at most once, by the
| |
| timeout | back to summary |
|---|---|
| public Void timeout() throws Joiner:R_X Implements java. Doc from java. Invoked by the If the outcome is an exception, this method throws the exception with a
This method will be called at most once, by the
| |