public class DepsAwareExecutorFactory extends Object
DepsAwareExecutor
s.
This factory uses DepsAwareExecutorType
to determine which implementation of the
DepsAwareExecutor
s to use.
Modifier and Type | Method and Description |
---|---|
static <U> DepsAwareExecutor<U,?> |
create(DepsAwareExecutorType type,
int parallelism) |
public static <U> DepsAwareExecutor<U,?> create(DepsAwareExecutorType type, int parallelism)
U
- the type supported by the DepsAwareExecutor
type
- the DepsAwareExecutorType
used to indicate which specific implementation of
DepsAwareExecutor
to returnparallelism
- the number of threads in parallelDepsAwareExecutor
of the given parallelism with the specific implementation
based on DepsAwareExecutorType