@Retention(value=RUNTIME) @Target(value=TYPE) @Inherited public @interface Parallel
Executors.newCachedThreadPool() method is used
to create a Thread Pool.
In case the value of threads attribute is specified and it is greater than 0,
Executors.newFixedThreadPool(int) method is used to create a fixed thread pool| Modifier and Type | Optional Element and Description |
|---|---|
int |
threads
Number of threads to start while executing the test methods in the given class
If the value is ZERO or a NEGATIVE number,
Executors.newCachedThreadPool() is used
to create thread pools else Executors.newFixedThreadPool(int) is used with the supplied thread count |
public abstract int threads
Executors.newCachedThreadPool() is used
to create thread pools else Executors.newFixedThreadPool(int) is used with the supplied thread countCopyright © 2014. All rights reserved.