Class MicrostreamHealthCheck.Builder
- java.lang.Object
-
- io.helidon.integrations.microstream.health.MicrostreamHealthCheck.Builder
-
- All Implemented Interfaces:
Builder<MicrostreamHealthCheck>
,Supplier<MicrostreamHealthCheck>
- Enclosing class:
- MicrostreamHealthCheck
public static class MicrostreamHealthCheck.Builder extends Object implements Builder<MicrostreamHealthCheck>
Builder for MicrostreamHealthCheck.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicrostreamHealthCheck
build()
Build the instance from this builder.MicrostreamHealthCheck.Builder
name(String name)
Customized name of the health check.MicrostreamHealthCheck.Builder
timeout(long duration, TimeUnit timeUnit)
Set custom timeout to wait for statement execution response.
-
-
-
Method Detail
-
build
public MicrostreamHealthCheck build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<MicrostreamHealthCheck>
- Returns:
- instance of the built type
-
name
public MicrostreamHealthCheck.Builder name(String name)
Customized name of the health check.- Parameters:
name
- name of the health check- Returns:
- updated builder instance
-
timeout
public MicrostreamHealthCheck.Builder timeout(long duration, TimeUnit timeUnit)
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
-
-