public static class DirectOptions.AvailableParallelismFactory extends Object implements DefaultValueFactory<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() |
public Integer create(PipelineOptions options)
create in interface DefaultValueFactory<Integer>Copyright © 2016–2017 The Apache Software Foundation. All rights reserved.