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.Deprecated, for removal: This API element is subject to removal in a future version.Set custom timeout to wait for statement execution response.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin 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
@Deprecated(since="4.0.0", forRemoval=true) public MicrostreamHealthCheck.Builder timeout(long duration, TimeUnit timeUnit) Deprecated, for removal: This API element is subject to removal in a future version.usetimeout(Duration)insteadSet 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
-
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 response- Returns:
- updated builder instance
-
timeout(Duration)instead