Package io.helidon.health.checks
Class HeapMemoryHealthCheck.Builder
- java.lang.Object
-
- io.helidon.health.checks.HeapMemoryHealthCheck.Builder
-
- All Implemented Interfaces:
Builder<HeapMemoryHealthCheck>,Supplier<HeapMemoryHealthCheck>
- Enclosing class:
- HeapMemoryHealthCheck
public static final class HeapMemoryHealthCheck.Builder extends Object implements Builder<HeapMemoryHealthCheck>
Fluent API builder forHeapMemoryHealthCheck.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeapMemoryHealthCheckbuild()Build the instance from this builder.HeapMemoryHealthCheck.BuilderthresholdPercent(double threshold)Threshol percentage.
-
-
-
Method Detail
-
build
public HeapMemoryHealthCheck build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<HeapMemoryHealthCheck>- Returns:
- instance of the built type
-
thresholdPercent
public HeapMemoryHealthCheck.Builder thresholdPercent(double threshold)
Threshol percentage. If used memory is above this threshold, reports the system is down.- Parameters:
threshold- threshold percentage (e.g. 87.47)- Returns:
- updated builder instance
-
-