Class GlobalMemoryMonitorConfigurationBuilder
java.lang.Object
org.infinispan.configuration.global.AbstractGlobalConfigurationBuilder
org.infinispan.configuration.global.GlobalMemoryMonitorConfigurationBuilder
- All Implemented Interfaces:
Builder<GlobalMemoryMonitorConfiguration>, GlobalConfigurationChildBuilder
public class GlobalMemoryMonitorConfigurationBuilder
extends AbstractGlobalConfigurationBuilder
implements Builder<GlobalMemoryMonitorConfiguration>
Builder for
GlobalMemoryMonitorConfiguration.- Since:
- 16.2
-
Method Summary
Modifier and TypeMethodDescriptioncreate()Create the configuration beanenabled(boolean enabled) Enables or disables the memory monitor.gcDurationThreshold(long gcDurationThreshold) Sets the GC pause duration in milliseconds that triggers a GC duration alert.gcPressureThreshold(double gcPressureThreshold) Sets the fraction of time spent in GC over the pressure window that triggers a GC pressure alert.gcPressureWindow(long gcPressureWindow) Sets the rolling time window in milliseconds over which GC pressure is calculated.memoryThreshold(double memoryThreshold) Sets the fraction of old generation heap usage that triggers a low memory alert.read(GlobalMemoryMonitorConfiguration template, Combine combine) Reads the configuration from an already created configuration bean into this builder.toString()Methods inherited from class AbstractGlobalConfigurationBuilder
addModule, asyncThreadPool, blockingThreadPool, build, clearModules, containerMemoryConfiguration, defaultCacheName, expirationThreadPool, getGlobalConfig, globalState, jmx, listenerThreadPool, memoryMonitor, metrics, module, modules, nonBlockingThreadPool, persistenceThreadPool, security, serialization, shutdown, tracing, transport
-
Method Details
-
attributes
- Specified by:
attributesin interfaceBuilder<GlobalMemoryMonitorConfiguration>
-
enabled
Enables or disables the memory monitor. When disabled, no JMX listeners are registered and no alerts are raised. Default istrue.- Parameters:
enabled- whether the memory monitor is enabled
-
memoryThreshold
Sets the fraction of old generation heap usage that triggers a low memory alert. Must be between 0 (exclusive) and 1.0 (inclusive). Default is 0.85.- Parameters:
memoryThreshold- the memory threshold as a fraction
-
gcDurationThreshold
Sets the GC pause duration in milliseconds that triggers a GC duration alert. A single GC pause exceeding this value will raise the alert. Default is 5000.- Parameters:
gcDurationThreshold- the GC duration threshold in milliseconds
-
gcPressureThreshold
Sets the fraction of time spent in GC over the pressure window that triggers a GC pressure alert. Must be between 0 (exclusive) and 1.0 (inclusive). Default is 0.20.- Parameters:
gcPressureThreshold- the GC pressure threshold as a fraction
-
gcPressureWindow
Sets the rolling time window in milliseconds over which GC pressure is calculated. Must be positive. Default is 60000.- Parameters:
gcPressureWindow- the GC pressure window in milliseconds
-
create
Description copied from interface:BuilderCreate the configuration bean- Specified by:
createin interfaceBuilder<GlobalMemoryMonitorConfiguration>- Returns:
-
read
public GlobalMemoryMonitorConfigurationBuilder read(GlobalMemoryMonitorConfiguration template, Combine combine) Description copied from interface:BuilderReads the configuration from an already created configuration bean into this builder. Returns an appropriate builder to allow fluent configuration- Specified by:
readin interfaceBuilder<GlobalMemoryMonitorConfiguration>- Parameters:
template- the configuration from which to "clone" this config if needed.combine- the way attributes and children of this instance and the template should be combined.
-
toString
-