T
- The type of task result item.public final class Threads<T> extends IterableEnvelope<T>
Constructor and Description |
---|
Threads(ExecutorService exc,
Duration timeout,
Iterable<? extends Scalar<? extends T>> tasks)
Ctor.
|
Threads(ExecutorService exc,
Duration timeout,
Scalar<? extends T>... tasks)
Ctor.
|
Threads(ExecutorService exc,
Iterable<? extends Scalar<? extends T>> tasks)
Ctor.
|
Threads(ExecutorService exc,
Scalar<? extends T>... tasks)
Ctor.
|
Threads(int threads,
Duration timeout,
Iterable<? extends Scalar<? extends T>> tasks)
Ctor.
|
Threads(int threads,
Duration timeout,
Scalar<? extends T>... tasks)
Ctor.
|
Threads(int threads,
Iterable<? extends Scalar<? extends T>> tasks)
Ctor.
|
Threads(int threads,
Scalar<? extends T>... tasks)
Ctor.
|
equals, hashCode, iterator, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
@SafeVarargs public Threads(ExecutorService exc, Scalar<? extends T>... tasks)
exc
- The executor.tasks
- The tasks to be executed concurrently.public Threads(ExecutorService exc, Iterable<? extends Scalar<? extends T>> tasks)
exc
- The executor.tasks
- The tasks to be executed concurrently.@SafeVarargs public Threads(int threads, Scalar<? extends T>... tasks)
threads
- The quantity of threads which will be used within the
ExecutorService
.tasks
- The tasks to be executed concurrently.Executors.newFixedThreadPool(int)
public Threads(int threads, Iterable<? extends Scalar<? extends T>> tasks)
threads
- The quantity of threads which will be used within the
ExecutorService
.tasks
- The tasks to be executed concurrently.@SafeVarargs public Threads(ExecutorService exc, Duration timeout, Scalar<? extends T>... tasks)
exc
- The executor.timeout
- The maximum time to wait.tasks
- The tasks to be executed concurrently.public Threads(ExecutorService exc, Duration timeout, Iterable<? extends Scalar<? extends T>> tasks)
exc
- The executor.timeout
- The maximum time to wait.tasks
- The tasks to be executed concurrently.@SafeVarargs public Threads(int threads, Duration timeout, Scalar<? extends T>... tasks)
threads
- The quantity of threads which will be used within the
ExecutorService
.timeout
- The maximum time to wait.tasks
- The tasks to be executed concurrently.Executors.newFixedThreadPool(int)
public Threads(int threads, Duration timeout, Iterable<? extends Scalar<? extends T>> tasks)
threads
- The quantity of threads which will be used within the
ExecutorService
.timeout
- The maximum time to wait.tasks
- The tasks to be executed concurrently.Executors.newFixedThreadPool(int)
Copyright © 2017–2022 Cactoos. All rights reserved.