Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate API methods with implicit parallelism resolution #466

Merged
merged 2 commits into from
Mar 15, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ private ParallelCollectors() {
* @return a {@code Collector} which collects all processed elements into a user-provided mutable {@code Collection} in parallel
*
* @since 2.0.0
* @deprecated use {@link ParallelCollectors#parallel(Function, Collector, Executor, int)}
*/
@Deprecated // for removal in 3.0.0
public static <T, R, RR> Collector<T, ?, CompletableFuture<RR>> parallel(Function<T, R> mapper, Collector<R, ?, RR> collector, Executor executor) {
return AsyncParallelCollector.collectingWithCollector(collector, mapper, executor);
}
Expand Down Expand Up @@ -98,7 +100,9 @@ private ParallelCollectors() {
* @return a {@code Collector} which collects all processed elements into a {@code Stream} in parallel
*
* @since 2.0.0
* @deprecated use {@link ParallelCollectors#parallel(Function, Executor, int)}
*/
@Deprecated // for removal in 3.0.0
public static <T, R> Collector<T, ?, CompletableFuture<Stream<R>>> parallel(Function<T, R> mapper, Executor executor) {
return AsyncParallelCollector.collectingToStream(mapper, executor);
}
Expand Down Expand Up @@ -162,7 +166,9 @@ private ParallelCollectors() {
* @return a {@code Collector} which collects all processed elements into a {@code Stream} in parallel
*
* @since 2.0.0
* @deprecated use {@link ParallelCollectors#parallelToStream(Function, Executor, int)}
*/
@Deprecated // for removal in 3.0.0
public static <T, R> Collector<T, ?, Stream<R>> parallelToStream(Function<T, R> mapper, Executor executor) {
return ParallelStreamCollector.streaming(mapper, executor);
}
Expand Down Expand Up @@ -222,7 +228,9 @@ private ParallelCollectors() {
* @return a {@code Collector} which collects all processed elements into a {@code Stream} in parallel
*
* @since 2.0.0
* @deprecated use {@link ParallelCollectors#parallelToOrderedStream(Function, Executor, int)}
*/
@Deprecated // for removal in 3.0.0
public static <T, R> Collector<T, ?, Stream<R>> parallelToOrderedStream(Function<T, R> mapper, Executor executor) {
return ParallelStreamCollector.streamingOrdered(mapper, executor);
}
Expand Down