- All Superinterfaces:
FtHandler
,RuntimeType.Api<TimeoutConfig>
Timeout attempts to terminate execution after defined duration of time.
-
Method Summary
Modifier and TypeMethodDescriptionstatic TimeoutConfig.Builder
builder()
Create a new fluent API builder to customize a timeout.static Timeout
create
(TimeoutConfig config) Create a timeout based on configuration.static Timeout
Create aTimeout
with specified timeout.static Timeout
create
(Consumer<TimeoutConfig.Builder> builderConsumer) Create a timeout with a possibility to customize its configuration.Methods inherited from interface io.helidon.builder.api.RuntimeType.Api
prototype
-
Method Details
-
create
Create a timeout based on configuration.- Parameters:
config
- timeout configuration- Returns:
- timeout handler
-
create
Create a timeout with a possibility to customize its configuration.- Parameters:
builderConsumer
- consumer to customize configuration- Returns:
- a new timeout
-
builder
Create a new fluent API builder to customize a timeout.- Returns:
- a new timeout builder
-
create
Create aTimeout
with specified timeout.- Parameters:
timeout
- duration of the timeout of operations handled by the new Timeout instance- Returns:
- a new timeout
-