public class GarbageCollectionAlertConfigurer extends Object implements AlertConfigurer
Use the call to create()
to create a fully initialized
GarbageCollectionAlertConfiguration
configuration.
GarbageCollectionAlertConfiguration
Constructor and Description |
---|
GarbageCollectionAlertConfigurer()
Constructs an empty garbage collection pause alert configuration.
|
Modifier and Type | Method and Description |
---|---|
GarbageCollectionAlertConfiguration |
create()
Get a fully configured garbage collection pause configuration (after all properties have been
set).
|
GarbageCollectionAlertConfigurer |
enable(boolean enabled)
Enable an alert using this configuration.
|
GarbageCollectionAlertConfigurer |
raiseAlertForGcDurationOf(long period,
TimeUnit timeUnit)
Raise an alert if gc took longer than the specified period of time.
|
GarbageCollectionAlertConfigurer |
resolveAlertForGcDurationOf(long period,
TimeUnit timeUnit)
Resolve a previously raised alert if gc took less than the specified period of time.
|
public GarbageCollectionAlertConfigurer()
public GarbageCollectionAlertConfigurer enable(boolean enabled)
AlertConfigurer
enable
in interface AlertConfigurer
enabled
- true
to enable the alert using this configuration; false
to disable the alert.AlertConfiguration.setEnabled(boolean)
public GarbageCollectionAlertConfigurer raiseAlertForGcDurationOf(long period, TimeUnit timeUnit)
period
- period of time spent on GC.timeUnit
- the time unit of the specified period.GarbageCollectionAlertConfiguration.setLongGcPausePeriod(long, TimeUnit)
public GarbageCollectionAlertConfigurer resolveAlertForGcDurationOf(long period, TimeUnit timeUnit)
period
- period of time spent on GC.timeUnit
- the time unit of the specified period.GarbageCollectionAlertConfiguration.setShortGcPausePeriod(long, TimeUnit)
public GarbageCollectionAlertConfiguration create()
create
in interface BeanConfigurer<AlertConfiguration>
Copyright © GigaSpaces.