Package com.saperion.connector.options
Class Options.BuilderChain
- java.lang.Object
-
- com.saperion.connector.options.Options.BuilderChain
-
- All Implemented Interfaces:
OptionsBuilder
- Enclosing class:
- Options
public static class Options.BuilderChain extends java.lang.Object implements OptionsBuilder
BuilderChain used to create a new Options instance.
-
-
Constructor Summary
Constructors Constructor Description BuilderChain(TargetFormat target)
Instantiates a new builder chain.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OptionsBuilder
additionalOptions(AdditionalOptions additionalOptions)
Adds additional options.Options
build()
Builds theOptions
.OptionsBuilder
definePaging(Paging paging)
Defines the paging.OptionsBuilder
timeOut(long timeOut, java.util.concurrent.TimeUnit timeUnit)
Defining timeout option.
-
-
-
Constructor Detail
-
BuilderChain
public BuilderChain(TargetFormat target)
Instantiates a new builder chain.- Parameters:
target
- the target
-
-
Method Detail
-
timeOut
public OptionsBuilder timeOut(long timeOut, java.util.concurrent.TimeUnit timeUnit)
Description copied from interface:OptionsBuilder
Defining timeout option.- Specified by:
timeOut
in interfaceOptionsBuilder
- Parameters:
timeOut
- timeout as longtimeUnit
- specifying the time units- Returns:
- OptionBuilder for timeout
-
additionalOptions
public OptionsBuilder additionalOptions(AdditionalOptions additionalOptions)
Description copied from interface:OptionsBuilder
Adds additional options.- Specified by:
additionalOptions
in interfaceOptionsBuilder
- Parameters:
additionalOptions
- the additional options- Returns:
- the builder
-
definePaging
public OptionsBuilder definePaging(Paging paging)
Description copied from interface:OptionsBuilder
Defines the paging.- Specified by:
definePaging
in interfaceOptionsBuilder
- Parameters:
paging
- the paging- Returns:
- the options builder
-
build
public Options build()
Description copied from interface:OptionsBuilder
Builds theOptions
.- Specified by:
build
in interfaceOptionsBuilder
- Returns:
- the
Options
to be build.
-
-