Package org.openjdk.jmh.runner.options
Class OptionsBuilder
- java.lang.Object
-
- org.openjdk.jmh.runner.options.OptionsBuilder
-
- All Implemented Interfaces:
Serializable,ChainedOptionsBuilder,Options
public class OptionsBuilder extends Object implements Options, ChainedOptionsBuilder
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OptionsBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChainedOptionsBuilderaddProfiler(Class<? extends Profiler> prof)Add the profiler in the runChainedOptionsBuilderaddProfiler(Class<? extends Profiler> prof, String initLine)Add the profiler in the runChainedOptionsBuilderaddProfiler(String prof)Add the profiler in the runChainedOptionsBuilderaddProfiler(String prof, String initLine)Add the profiler in the runOptionsbuild()Produce the final OptionsChainedOptionsBuilderdetectJvmArgs()Autodetect forked JVM arguments from the parent VM.ChainedOptionsBuilderexclude(String regexp)Exclude benchmarks from the run (Can be used multiple times)ChainedOptionsBuilderforks(int value)Number of forks to use in the runCollection<Mode>getBenchModes()Benchmarks modes to execute.List<String>getExcludes()Which benchmarks to omit?Optional<Integer>getForkCount()Fork countList<String>getIncludes()Which benchmarks to execute?Optional<String>getJvm()JVM executable to use for forksOptional<Collection<String>>getJvmArgs()JVM parameters to use with forksOptional<Collection<String>>getJvmArgsAppend()JVM parameters to use with forks (these options will be appended after any other JVM option)Optional<Collection<String>>getJvmArgsPrepend()JVM parameters to use with forks (these options will be prepended before any other JVM option)Optional<Integer>getMeasurementBatchSize()Number of batch size for measurementOptional<Integer>getMeasurementIterations()Number of measurement iterationsOptional<TimeValue>getMeasurementTime()The duration for measurement iterationsOptional<Integer>getOperationsPerInvocation()Operations per invocation.Optional<String>getOutput()Which file to use for dumping the outputOptional<Collection<String>>getParameter(String name)The overridden value of the parameter.List<ProfilerConfig>getProfilers()Profilers to use for the run.Optional<String>getResult()Which file to use for dumping the resultOptional<ResultFormatType>getResultFormat()Result format to useOptional<int[]>getThreadGroups()Thread subgroups distribution.Optional<Integer>getThreads()Number of threads to runOptional<TimeValue>getTimeout()Timeout: how long to wait for an iteration to complete.Optional<TimeUnit>getTimeUnit()Timeunit to use in units.Optional<Integer>getWarmupBatchSize()Number of batch size for warmupOptional<Integer>getWarmupForkCount()Number of initial forks to ignore the results forList<String>getWarmupIncludes()Which benchmarks to warmup before doing the run.Optional<Integer>getWarmupIterations()Number of warmup iterationsOptional<WarmupMode>getWarmupMode()Warmup mode.Optional<TimeValue>getWarmupTime()The duration for warmup iterationsChainedOptionsBuilderinclude(String regexp)Include benchmark in the run (Can be used multiple times)ChainedOptionsBuilderincludeWarmup(String regexp)What other benchmarks to warmup along the wayChainedOptionsBuilderjvm(String path)Forked JVM to use.ChainedOptionsBuilderjvmArgs(String... value)Forked JVM arguments.ChainedOptionsBuilderjvmArgsAppend(String... value)Append forked JVM arguments: These options go after other options.ChainedOptionsBuilderjvmArgsPrepend(String... value)Prepend forked JVM arguments: These options go before any other options.ChainedOptionsBuildermeasurementBatchSize(int value)How large measurement batchSize should be?ChainedOptionsBuildermeasurementIterations(int count)How many measurement measurementIterations to doChainedOptionsBuildermeasurementTime(TimeValue value)How long each measurement iteration should take?ChainedOptionsBuildermode(Mode mode)Benchmark mode.ChainedOptionsBuilderoperationsPerInvocation(int opsPerInv)Operations per invocation.ChainedOptionsBuilderoutput(String filename)Output filename to write the run log toChainedOptionsBuilderparam(String name, String... values)Set benchmark parameter values.ChainedOptionsBuilderparent(Options other)Override the defaults from the given option.ChainedOptionsBuilderresult(String filename)Output filename to write the result toChainedOptionsBuilderresultFormat(ResultFormatType type)ResultFormatType to use in the runOptional<Boolean>shouldDoGC()Should force GC between iterations?ChainedOptionsBuildershouldDoGC(boolean value)Should do GC between measurementIterations?Optional<Boolean>shouldFailOnError()Should harness terminate on first error encountered?ChainedOptionsBuildershouldFailOnError(boolean value)Should fail on first benchmark error?Optional<Boolean>shouldSyncIterations()Should synchronize iterations?ChainedOptionsBuildersyncIterations(boolean value)Should synchronize measurementIterations?ChainedOptionsBuilderthreadGroups(int... groups)Subgroups thread distribution.ChainedOptionsBuilderthreads(int count)Number of threads to run the benchmark inChainedOptionsBuildertimeout(TimeValue value)How long to wait for iteration execution?ChainedOptionsBuildertimeUnit(TimeUnit tu)Timeunit to use in resultsOptional<VerboseMode>verbosity()How verbose should we be?ChainedOptionsBuilderverbosity(VerboseMode mode)Control verbosity level.ChainedOptionsBuilderwarmupBatchSize(int value)How large warmup batchSize should be?ChainedOptionsBuilderwarmupForks(int value)Number of ignored forksChainedOptionsBuilderwarmupIterations(int value)How many warmup iterations to do?ChainedOptionsBuilderwarmupMode(WarmupMode mode)Warmup mode to useChainedOptionsBuilderwarmupTime(TimeValue value)How long each warmup iteration should take?
-
-
-
Method Detail
-
build
public Options build()
Description copied from interface:ChainedOptionsBuilderProduce the final Options- Specified by:
buildin interfaceChainedOptionsBuilder- Returns:
- options object.
-
parent
public ChainedOptionsBuilder parent(Options other)
Description copied from interface:ChainedOptionsBuilderOverride the defaults from the given option. You may use this only once.- Specified by:
parentin interfaceChainedOptionsBuilder- Parameters:
other- options to base on- Returns:
- builder
-
include
public ChainedOptionsBuilder include(String regexp)
Description copied from interface:ChainedOptionsBuilderInclude benchmark in the run (Can be used multiple times)- Specified by:
includein interfaceChainedOptionsBuilder- Parameters:
regexp- to match benchmarks against- Returns:
- builder
- See Also:
Defaults.INCLUDE_BENCHMARKS
-
getIncludes
public List<String> getIncludes()
Description copied from interface:OptionsWhich benchmarks to execute?- Specified by:
getIncludesin interfaceOptions- Returns:
- list of regexps matching the requested benchmarks
-
exclude
public ChainedOptionsBuilder exclude(String regexp)
Description copied from interface:ChainedOptionsBuilderExclude benchmarks from the run (Can be used multiple times)- Specified by:
excludein interfaceChainedOptionsBuilder- Parameters:
regexp- to match benchmark against- Returns:
- builder
-
getExcludes
public List<String> getExcludes()
Description copied from interface:OptionsWhich benchmarks to omit?- Specified by:
getExcludesin interfaceOptions- Returns:
- list of regexps matching the ignored benchmarks
-
output
public ChainedOptionsBuilder output(String filename)
Description copied from interface:ChainedOptionsBuilderOutput filename to write the run log to- Specified by:
outputin interfaceChainedOptionsBuilder- Parameters:
filename- file name- Returns:
- builder
-
getOutput
public Optional<String> getOutput()
Description copied from interface:OptionsWhich file to use for dumping the output
-
resultFormat
public ChainedOptionsBuilder resultFormat(ResultFormatType type)
Description copied from interface:ChainedOptionsBuilderResultFormatType to use in the run- Specified by:
resultFormatin interfaceChainedOptionsBuilder- Parameters:
type- resultformat type- Returns:
- builder
- See Also:
Defaults.RESULT_FORMAT
-
getResultFormat
public Optional<ResultFormatType> getResultFormat()
Description copied from interface:OptionsResult format to use- Specified by:
getResultFormatin interfaceOptions- Returns:
- format type
-
result
public ChainedOptionsBuilder result(String filename)
Description copied from interface:ChainedOptionsBuilderOutput filename to write the result to- Specified by:
resultin interfaceChainedOptionsBuilder- Parameters:
filename- file name- Returns:
- builder
- See Also:
Defaults.RESULT_FILE_PREFIX
-
getResult
public Optional<String> getResult()
Description copied from interface:OptionsWhich file to use for dumping the result
-
shouldDoGC
public ChainedOptionsBuilder shouldDoGC(boolean value)
Description copied from interface:ChainedOptionsBuilderShould do GC between measurementIterations?- Specified by:
shouldDoGCin interfaceChainedOptionsBuilder- Parameters:
value- flag- Returns:
- builder
- See Also:
Defaults.DO_GC
-
shouldDoGC
public Optional<Boolean> shouldDoGC()
Description copied from interface:OptionsShould force GC between iterations?- Specified by:
shouldDoGCin interfaceOptions- Returns:
- should GC?
-
addProfiler
public ChainedOptionsBuilder addProfiler(Class<? extends Profiler> prof)
Description copied from interface:ChainedOptionsBuilderAdd the profiler in the run- Specified by:
addProfilerin interfaceChainedOptionsBuilder- Parameters:
prof- profiler class- Returns:
- builder
-
addProfiler
public ChainedOptionsBuilder addProfiler(Class<? extends Profiler> prof, String initLine)
Description copied from interface:ChainedOptionsBuilderAdd the profiler in the run- Specified by:
addProfilerin interfaceChainedOptionsBuilder- Parameters:
prof- profiler classinitLine- profiler options initialization line- Returns:
- builder
-
addProfiler
public ChainedOptionsBuilder addProfiler(String prof)
Description copied from interface:ChainedOptionsBuilderAdd the profiler in the run- Specified by:
addProfilerin interfaceChainedOptionsBuilder- Parameters:
prof- profiler class name, or profiler alias- Returns:
- builder
-
addProfiler
public ChainedOptionsBuilder addProfiler(String prof, String initLine)
Description copied from interface:ChainedOptionsBuilderAdd the profiler in the run- Specified by:
addProfilerin interfaceChainedOptionsBuilder- Parameters:
prof- profiler class name, or profiler aliasinitLine- profiler options initialization line- Returns:
- builder
-
getProfilers
public List<ProfilerConfig> getProfilers()
Description copied from interface:OptionsProfilers to use for the run. Profilers will start in the order specified by collection, and will stop in the reverse order.- Specified by:
getProfilersin interfaceOptions- Returns:
- profilers to use; empty collection if no profilers are required
-
verbosity
public ChainedOptionsBuilder verbosity(VerboseMode mode)
Description copied from interface:ChainedOptionsBuilderControl verbosity level.- Specified by:
verbosityin interfaceChainedOptionsBuilder- Parameters:
mode- flag- Returns:
- builder
- See Also:
Defaults.VERBOSITY
-
verbosity
public Optional<VerboseMode> verbosity()
Description copied from interface:OptionsHow verbose should we be?
-
shouldFailOnError
public ChainedOptionsBuilder shouldFailOnError(boolean value)
Description copied from interface:ChainedOptionsBuilderShould fail on first benchmark error?- Specified by:
shouldFailOnErrorin interfaceChainedOptionsBuilder- Parameters:
value- flag- Returns:
- builder
- See Also:
Defaults.FAIL_ON_ERROR
-
shouldFailOnError
public Optional<Boolean> shouldFailOnError()
Description copied from interface:OptionsShould harness terminate on first error encountered?- Specified by:
shouldFailOnErrorin interfaceOptions- Returns:
- should terminate?
-
threads
public ChainedOptionsBuilder threads(int count)
Description copied from interface:ChainedOptionsBuilderNumber of threads to run the benchmark in- Specified by:
threadsin interfaceChainedOptionsBuilder- Parameters:
count- number of threads- Returns:
- builder
- See Also:
Threads,Defaults.THREADS
-
getThreads
public Optional<Integer> getThreads()
Description copied from interface:OptionsNumber of threads to run- Specified by:
getThreadsin interfaceOptions- Returns:
- number of threads; 0 to use maximum number of threads
- See Also:
Threads
-
threadGroups
public ChainedOptionsBuilder threadGroups(int... groups)
Description copied from interface:ChainedOptionsBuilderSubgroups thread distribution.- Specified by:
threadGroupsin interfaceChainedOptionsBuilder- Parameters:
groups- thread distribution- Returns:
- builder
- See Also:
Group,GroupThreads
-
getThreadGroups
public Optional<int[]> getThreadGroups()
Description copied from interface:OptionsThread subgroups distribution.- Specified by:
getThreadGroupsin interfaceOptions- Returns:
- array of thread ratios
- See Also:
Group,GroupThreads
-
syncIterations
public ChainedOptionsBuilder syncIterations(boolean value)
Description copied from interface:ChainedOptionsBuilderShould synchronize measurementIterations?- Specified by:
syncIterationsin interfaceChainedOptionsBuilder- Parameters:
value- flag- Returns:
- builder
- See Also:
Defaults.SYNC_ITERATIONS
-
shouldSyncIterations
public Optional<Boolean> shouldSyncIterations()
Description copied from interface:OptionsShould synchronize iterations?- Specified by:
shouldSyncIterationsin interfaceOptions- Returns:
- should we?
-
warmupIterations
public ChainedOptionsBuilder warmupIterations(int value)
Description copied from interface:ChainedOptionsBuilderHow many warmup iterations to do?- Specified by:
warmupIterationsin interfaceChainedOptionsBuilder- Parameters:
value- flag- Returns:
- builder
- See Also:
Warmup,Defaults.WARMUP_ITERATIONS,Defaults.WARMUP_ITERATIONS_SINGLESHOT
-
getWarmupIterations
public Optional<Integer> getWarmupIterations()
Description copied from interface:OptionsNumber of warmup iterations- Specified by:
getWarmupIterationsin interfaceOptions- Returns:
- number of warmup iterations
- See Also:
Warmup
-
warmupBatchSize
public ChainedOptionsBuilder warmupBatchSize(int value)
Description copied from interface:ChainedOptionsBuilderHow large warmup batchSize should be?- Specified by:
warmupBatchSizein interfaceChainedOptionsBuilder- Parameters:
value- batch size- Returns:
- builder
- See Also:
Warmup,Defaults.WARMUP_BATCHSIZE
-
getWarmupBatchSize
public Optional<Integer> getWarmupBatchSize()
Description copied from interface:OptionsNumber of batch size for warmup- Specified by:
getWarmupBatchSizein interfaceOptions- Returns:
- number of batch size for warmup
- See Also:
Warmup
-
warmupTime
public ChainedOptionsBuilder warmupTime(TimeValue value)
Description copied from interface:ChainedOptionsBuilderHow long each warmup iteration should take?- Specified by:
warmupTimein interfaceChainedOptionsBuilder- Parameters:
value- time- Returns:
- builder
- See Also:
Warmup,Defaults.WARMUP_TIME
-
getWarmupTime
public Optional<TimeValue> getWarmupTime()
Description copied from interface:OptionsThe duration for warmup iterations- Specified by:
getWarmupTimein interfaceOptions- Returns:
- duration
- See Also:
Warmup
-
warmupMode
public ChainedOptionsBuilder warmupMode(WarmupMode mode)
Description copied from interface:ChainedOptionsBuilderWarmup mode to use- Specified by:
warmupModein interfaceChainedOptionsBuilder- Parameters:
mode- to use- Returns:
- builder
- See Also:
Defaults.WARMUP_MODE
-
getWarmupMode
public Optional<WarmupMode> getWarmupMode()
Description copied from interface:OptionsWarmup mode.- Specified by:
getWarmupModein interfaceOptions- Returns:
- warmup mode
- See Also:
WarmupMode
-
includeWarmup
public ChainedOptionsBuilder includeWarmup(String regexp)
Description copied from interface:ChainedOptionsBuilderWhat other benchmarks to warmup along the way- Specified by:
includeWarmupin interfaceChainedOptionsBuilder- Parameters:
regexp- to match benchmarks against- Returns:
- builder
-
getWarmupIncludes
public List<String> getWarmupIncludes()
Description copied from interface:OptionsWhich benchmarks to warmup before doing the run.- Specified by:
getWarmupIncludesin interfaceOptions- Returns:
- list of regexps matching the relevant benchmarks; empty if no benchmarks are defined
-
measurementIterations
public ChainedOptionsBuilder measurementIterations(int count)
Description copied from interface:ChainedOptionsBuilderHow many measurement measurementIterations to do- Specified by:
measurementIterationsin interfaceChainedOptionsBuilder- Parameters:
count- number of iterations- Returns:
- builder
- See Also:
Measurement,Defaults.MEASUREMENT_ITERATIONS,Defaults.MEASUREMENT_ITERATIONS_SINGLESHOT
-
getMeasurementIterations
public Optional<Integer> getMeasurementIterations()
Description copied from interface:OptionsNumber of measurement iterations- Specified by:
getMeasurementIterationsin interfaceOptions- Returns:
- number of measurement iterations
- See Also:
Measurement
-
measurementTime
public ChainedOptionsBuilder measurementTime(TimeValue value)
Description copied from interface:ChainedOptionsBuilderHow long each measurement iteration should take?- Specified by:
measurementTimein interfaceChainedOptionsBuilder- Parameters:
value- time- Returns:
- builder
- See Also:
Measurement,Defaults.MEASUREMENT_TIME
-
getMeasurementTime
public Optional<TimeValue> getMeasurementTime()
Description copied from interface:OptionsThe duration for measurement iterations- Specified by:
getMeasurementTimein interfaceOptions- Returns:
- duration
- See Also:
Measurement
-
measurementBatchSize
public ChainedOptionsBuilder measurementBatchSize(int value)
Description copied from interface:ChainedOptionsBuilderHow large measurement batchSize should be?- Specified by:
measurementBatchSizein interfaceChainedOptionsBuilder- Parameters:
value- batch size- Returns:
- builder
- See Also:
Measurement,Defaults.MEASUREMENT_BATCHSIZE
-
getMeasurementBatchSize
public Optional<Integer> getMeasurementBatchSize()
Description copied from interface:OptionsNumber of batch size for measurement- Specified by:
getMeasurementBatchSizein interfaceOptions- Returns:
- number of batch size for measurement
- See Also:
Measurement
-
mode
public ChainedOptionsBuilder mode(Mode mode)
Description copied from interface:ChainedOptionsBuilderBenchmark mode. (Can be used multiple times)- Specified by:
modein interfaceChainedOptionsBuilder- Parameters:
mode- benchmark mode- Returns:
- builder
- See Also:
BenchmarkMode,Defaults.BENCHMARK_MODE
-
getBenchModes
public Collection<Mode> getBenchModes()
Description copied from interface:OptionsBenchmarks modes to execute.- Specified by:
getBenchModesin interfaceOptions- Returns:
- modes to execute the benchmarks in; empty to use the default modes
- See Also:
BenchmarkMode
-
timeUnit
public ChainedOptionsBuilder timeUnit(TimeUnit tu)
Description copied from interface:ChainedOptionsBuilderTimeunit to use in results- Specified by:
timeUnitin interfaceChainedOptionsBuilder- Parameters:
tu- time unit- Returns:
- builder
- See Also:
OutputTimeUnit,Defaults.OUTPUT_TIMEUNIT
-
getTimeUnit
public Optional<TimeUnit> getTimeUnit()
Description copied from interface:OptionsTimeunit to use in units.- Specified by:
getTimeUnitin interfaceOptions- Returns:
- timeunit
- See Also:
OutputTimeUnit
-
operationsPerInvocation
public ChainedOptionsBuilder operationsPerInvocation(int opsPerInv)
Description copied from interface:ChainedOptionsBuilderOperations per invocation.- Specified by:
operationsPerInvocationin interfaceChainedOptionsBuilder- Parameters:
opsPerInv- operations per invocation.- Returns:
- builder
- See Also:
OperationsPerInvocation,Defaults.OPS_PER_INVOCATION
-
getOperationsPerInvocation
public Optional<Integer> getOperationsPerInvocation()
Description copied from interface:OptionsOperations per invocation.- Specified by:
getOperationsPerInvocationin interfaceOptions- Returns:
- operations per invocation.
- See Also:
OperationsPerInvocation
-
forks
public ChainedOptionsBuilder forks(int value)
Description copied from interface:ChainedOptionsBuilderNumber of forks to use in the run- Specified by:
forksin interfaceChainedOptionsBuilder- Parameters:
value- number of forks- Returns:
- builder
- See Also:
Fork,Defaults.MEASUREMENT_FORKS
-
getForkCount
public Optional<Integer> getForkCount()
Description copied from interface:OptionsFork count- Specified by:
getForkCountin interfaceOptions- Returns:
- fork count; 0, to prohibit forking
- See Also:
Fork
-
warmupForks
public ChainedOptionsBuilder warmupForks(int value)
Description copied from interface:ChainedOptionsBuilderNumber of ignored forks- Specified by:
warmupForksin interfaceChainedOptionsBuilder- Parameters:
value- number of ignored forks- Returns:
- builder
- See Also:
Fork,Defaults.WARMUP_FORKS
-
getWarmupForkCount
public Optional<Integer> getWarmupForkCount()
Description copied from interface:OptionsNumber of initial forks to ignore the results for- Specified by:
getWarmupForkCountin interfaceOptions- Returns:
- initial fork count; 0, to disable
- See Also:
Fork
-
jvm
public ChainedOptionsBuilder jvm(String path)
Description copied from interface:ChainedOptionsBuilderForked JVM to use.- Specified by:
jvmin interfaceChainedOptionsBuilder- Parameters:
path- path to /bin/java- Returns:
- builder
-
getJvm
public Optional<String> getJvm()
Description copied from interface:OptionsJVM executable to use for forks
-
jvmArgs
public ChainedOptionsBuilder jvmArgs(String... value)
Description copied from interface:ChainedOptionsBuilderForked JVM arguments.- Specified by:
jvmArgsin interfaceChainedOptionsBuilder- Parameters:
value- arguments to add to the run- Returns:
- builder
- See Also:
Fork
-
getJvmArgs
public Optional<Collection<String>> getJvmArgs()
Description copied from interface:OptionsJVM parameters to use with forks- Specified by:
getJvmArgsin interfaceOptions- Returns:
- JVM parameters
- See Also:
Fork
-
jvmArgsAppend
public ChainedOptionsBuilder jvmArgsAppend(String... value)
Description copied from interface:ChainedOptionsBuilderAppend forked JVM arguments: These options go after other options.- Specified by:
jvmArgsAppendin interfaceChainedOptionsBuilder- Parameters:
value- arguments to add to the run- Returns:
- builder
- See Also:
Fork
-
getJvmArgsAppend
public Optional<Collection<String>> getJvmArgsAppend()
Description copied from interface:OptionsJVM parameters to use with forks (these options will be appended after any other JVM option)- Specified by:
getJvmArgsAppendin interfaceOptions- Returns:
- JVM parameters
- See Also:
Fork
-
jvmArgsPrepend
public ChainedOptionsBuilder jvmArgsPrepend(String... value)
Description copied from interface:ChainedOptionsBuilderPrepend forked JVM arguments: These options go before any other options.- Specified by:
jvmArgsPrependin interfaceChainedOptionsBuilder- Parameters:
value- arguments to add to the run- Returns:
- builder
- See Also:
Fork
-
getJvmArgsPrepend
public Optional<Collection<String>> getJvmArgsPrepend()
Description copied from interface:OptionsJVM parameters to use with forks (these options will be prepended before any other JVM option)- Specified by:
getJvmArgsPrependin interfaceOptions- Returns:
- JVM parameters
- See Also:
Fork
-
detectJvmArgs
public ChainedOptionsBuilder detectJvmArgs()
Description copied from interface:ChainedOptionsBuilderAutodetect forked JVM arguments from the parent VM. Overrides the jvmArgs(...) value.- Specified by:
detectJvmArgsin interfaceChainedOptionsBuilder- Returns:
- builder
-
getParameter
public Optional<Collection<String>> getParameter(String name)
Description copied from interface:OptionsThe overridden value of the parameter.- Specified by:
getParameterin interfaceOptions- Parameters:
name- parameter name- Returns:
- parameter
- See Also:
Param
-
param
public ChainedOptionsBuilder param(String name, String... values)
Description copied from interface:ChainedOptionsBuilderSet benchmark parameter values. The parameter values would be taken in the order given by user.- Specified by:
paramin interfaceChainedOptionsBuilder- Parameters:
name- parametervalues- sequence of values to set- Returns:
- builder
- See Also:
Param
-
timeout
public ChainedOptionsBuilder timeout(TimeValue value)
Description copied from interface:ChainedOptionsBuilderHow long to wait for iteration execution?- Specified by:
timeoutin interfaceChainedOptionsBuilder- Parameters:
value- time- Returns:
- builder
- See Also:
Defaults.TIMEOUT
-
getTimeout
public Optional<TimeValue> getTimeout()
Description copied from interface:OptionsTimeout: how long to wait for an iteration to complete.- Specified by:
getTimeoutin interfaceOptions- Returns:
- duration
-
-