Package io.helidon.health.checks
Class DiskSpaceHealthCheck.Builder
- java.lang.Object
-
- io.helidon.health.checks.DiskSpaceHealthCheck.Builder
-
- All Implemented Interfaces:
Builder<DiskSpaceHealthCheck>
,Supplier<DiskSpaceHealthCheck>
- Enclosing class:
- DiskSpaceHealthCheck
public static final class DiskSpaceHealthCheck.Builder extends Object implements Builder<DiskSpaceHealthCheck>
Fluent API builder forDiskSpaceHealthCheck
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiskSpaceHealthCheck
build()
Build the instance from this builder.DiskSpaceHealthCheck.Builder
path(String path)
Path on the file system to find a file system.DiskSpaceHealthCheck.Builder
path(Path path)
Path on the file system to find a file system.DiskSpaceHealthCheck.Builder
thresholdPercent(double threshold)
Threshold percent.
-
-
-
Method Detail
-
build
public DiskSpaceHealthCheck build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<DiskSpaceHealthCheck>
- Returns:
- instance of the built type
-
path
public DiskSpaceHealthCheck.Builder path(String path)
Path on the file system to find a file system.- Parameters:
path
- path to use- Returns:
- updated builder instance
- See Also:
path(java.nio.file.Path)
-
path
public DiskSpaceHealthCheck.Builder path(Path path)
Path on the file system to find a file system.- Parameters:
path
- path to use- Returns:
- updated builder instance
-
thresholdPercent
public DiskSpaceHealthCheck.Builder thresholdPercent(double threshold)
Threshold percent. When disk is fuller than this percentage, health is switched to down.- Parameters:
threshold
- percentage- Returns:
- updated builder instance
-
-