Package art.cutils.value
Class Syndicate.Conductor<T>
- java.lang.Object
-
- art.cutils.value.Syndicate.Conductor<T>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
@NotNull Syndicate.Conductor<T>
execute()
Executes the given tasks, passes a list of Futures holding their status and results.@NotNull Try<List<Future<T>>>
get()
Get the list of Futures hold the results.int
hashCode()
@NotNull Syndicate.Close<T>
onComplete(@NotNull Consumer<Try<List<Future<T>>>> futuresConsumer)
Executes the given tasks, passes a list of Futures holding their status and results when all complete toAccepter
.@NotNull String
toString()
-
-
-
Method Detail
-
onComplete
@Contract("_ -> new") @NotNull public @NotNull Syndicate.Close<T> onComplete(@NotNull @NotNull Consumer<Try<List<Future<T>>>> futuresConsumer)
Executes the given tasks, passes a list of Futures holding their status and results when all complete toAccepter
. Future.isDone is true for each element of the returned list. Note that a completed task could have terminated either normally or by throwing an exception. The results of this method are undefined if the given collection is modified while this operation is in progress.- Parameters:
futuresConsumer
- the consumer to accept the list of Futures- Returns:
- the
Try
list of Futures holding the status of the tasks
-
execute
@Contract(" -> new") @NotNull public @NotNull Syndicate.Conductor<T> execute()
Executes the given tasks, passes a list of Futures holding their status and results.- Returns:
- the
Try
list of Futures holding the status of the tasks
-
get
@Contract(pure=true) @NotNull public @NotNull Try<List<Future<T>>> get()
Get the list of Futures hold the results.- Returns:
- the
Try
list of Futures holding the status of the tasks
-
equals
@Contract(value="null -> false", pure=true) public boolean equals(Object o)
-
-