Package at.jku.ssw.fp.sect09_1
Class Demo3_ParallelStream
- java.lang.Object
-
- at.jku.ssw.fp.sect09_1.Demo3_ParallelStream
-
public class Demo3_ParallelStream extends Object
Demo showing the use of parallel streams for blocking calls. Uses an new fork-join pool for executing the parallel stream.- Author:
- Herbert Praehofer
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_RETURNS
private static String
PARALLELISM
(package private) static Random
RAND
-
Constructor Summary
Constructors Constructor Description Demo3_ParallelStream()
-
-
-
Field Detail
-
PARALLELISM
private static final String PARALLELISM
- See Also:
- Constant Field Values
-
MAX_RETURNS
private static final int MAX_RETURNS
- See Also:
- Constant Field Values
-
RAND
static final Random RAND
-
-
Method Detail
-
main
public static void main(String[] args) throws InterruptedException
- Throws:
InterruptedException
-
-