- java.lang.Object
-
- io.helidon.faulttolerance.Timeout.Builder
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Timeoutbuild()Build the instance from this builder.Timeout.Builderexecutor(ScheduledExecutorService executor)Executor service to schedule the timeout.Timeout.Buildertimeout(Duration timeout)Timeout duration.
-
-
-
Method Detail
-
build
public Timeout build()
Description copied from interface:BuilderBuild the instance from this builder.
-
timeout
public Timeout.Builder timeout(Duration timeout)
Timeout duration.- Parameters:
timeout- duration of the timeout of operations handled by the new Timeout instance- Returns:
- updated builder instance
-
executor
public Timeout.Builder executor(ScheduledExecutorService executor)
Executor service to schedule the timeout.- Parameters:
executor- scheduled executor service to use- Returns:
- updated builder instance
-
-