public static class DirectOptions.AvailableParallelismFactory extends java.lang.Object implements DefaultValueFactory<java.lang.Integer>
DefaultValueFactory that returns the result of Runtime.availableProcessors()
 from the create(PipelineOptions) method. Uses Runtime.getRuntime() to obtain
 the Runtime.| Constructor and Description | 
|---|
| AvailableParallelismFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Integer | create(PipelineOptions options)Creates a default value for a getter marked with  Default.InstanceFactory. | 
public java.lang.Integer create(PipelineOptions options)
DefaultValueFactoryDefault.InstanceFactory.create in interface DefaultValueFactory<java.lang.Integer>options - The current pipeline options.