public static class GcTimeMonitor.Builder
extends java.lang.Object
| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
GcTimeMonitor |
build() |
|
GcTimeMonitor.Builder |
gcTimeAlertHandler(GcTimeMonitor.GcTimeAlertHandler value) |
Set the GC alert handler.
|
GcTimeMonitor.Builder |
maxGcTimePercentage(int value) |
Set the max GC time percentage that triggers the alert handler.
|
GcTimeMonitor.Builder |
observationWindowMs(long value) |
Set observation window size in milliseconds.
|
GcTimeMonitor.Builder |
sleepIntervalMs(long value) |
Set sleep interval in milliseconds.
|
public GcTimeMonitor.Builder observationWindowMs(long value)
value - value.public GcTimeMonitor.Builder sleepIntervalMs(long value)
value - value.public GcTimeMonitor.Builder maxGcTimePercentage(int value)
value - value.public GcTimeMonitor.Builder gcTimeAlertHandler(GcTimeMonitor.GcTimeAlertHandler value)
value - value.public GcTimeMonitor build()
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.