@Health @ApplicationScoped public final class HeapMemoryHealthCheck extends Object implements HealthCheck
healthCheck.heapMemory.thresholdPercent property. The threshold should be set to a fraction, such as
.50 for 50% or .99 for 99%.
This health check is automatically created and registered through CDI.
This health check can be referred to in properties as "heapMemory". So for example, to exclude this
health check from being exposed, use "helidon.health.exclude: heapMemory".| Modifier and Type | Class and Description |
|---|---|
static class |
HeapMemoryHealthCheck.Builder
Fluent API builder for
HeapMemoryHealthCheck. |
| Modifier and Type | Field and Description |
|---|---|
static double |
DEFAULT_THRESHOLD
Default threshold percentage.
|
| Modifier and Type | Method and Description |
|---|---|
static HeapMemoryHealthCheck.Builder |
builder()
Create a new fluent API builder to configure a new health check.
|
HealthCheckResponse |
call() |
static HeapMemoryHealthCheck |
create()
Create a new heap memory health check with default configuration.
|
public static final double DEFAULT_THRESHOLD
public static HeapMemoryHealthCheck.Builder builder()
public static HeapMemoryHealthCheck create()
HealthSupport.Builder.add(org.eclipse.microprofile.health.HealthCheck...)DEFAULT_THRESHOLDpublic HealthCheckResponse call()
call in interface HealthCheckCopyright © 2018, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.