Class DirectOptions.AvailableParallelismFactory

java.lang.Object
org.apache.beam.runners.direct.DirectOptions.AvailableParallelismFactory
All Implemented Interfaces:
DefaultValueFactory<Integer>
Enclosing interface:
DirectOptions

public static class DirectOptions.AvailableParallelismFactory extends Object implements DefaultValueFactory<Integer>
A DefaultValueFactory that returns the result of Runtime.availableProcessors() from the create(PipelineOptions) method. Uses Runtime.getRuntime() to obtain the Runtime.