Class MicrostreamHealthCheck.Builder
java.lang.Object
io.helidon.integrations.microstream.health.MicrostreamHealthCheck.Builder
- All Implemented Interfaces:
Builder<MicrostreamHealthCheck.Builder,
,MicrostreamHealthCheck> Supplier<MicrostreamHealthCheck>
- Enclosing class:
- MicrostreamHealthCheck
public static class MicrostreamHealthCheck.Builder
extends Object
implements Builder<MicrostreamHealthCheck.Builder,MicrostreamHealthCheck>
Builder for MicrostreamHealthCheck.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the instance from this builder.Customized name of the health check.Set custom timeout to wait for statement execution response.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<MicrostreamHealthCheck.Builder,
MicrostreamHealthCheck> - Returns:
- instance of the built type
-
name
Customized name of the health check.- Parameters:
name
- name of the health check- Returns:
- updated builder instance
-
timeout
Set custom timeout to wait for statement execution response. Default value is 10 seconds.- Parameters:
duration
- the maximum time to wait for statement execution responsetimeUnit
- the time unit of the timeout argument- Returns:
- updated builder instance
-