public static class GcTimeMonitor.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and 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)
public GcTimeMonitor.Builder sleepIntervalMs(long value)
public GcTimeMonitor.Builder maxGcTimePercentage(int value)
public GcTimeMonitor.Builder gcTimeAlertHandler(GcTimeMonitor.GcTimeAlertHandler value)
public GcTimeMonitor build()
Copyright © 2008–2021 Apache Software Foundation. All rights reserved.