GCMonitor.Empty
Constructor and Description |
---|
DelegatingGCMonitor()
New instance without any delegate.
|
DelegatingGCMonitor(@NotNull java.util.Collection<? extends GCMonitor> gcMonitors)
New instance with an initial set of delegates (which cannot be unregistered).
|
Modifier and Type | Method and Description |
---|---|
void |
cleaned(long reclaimedSize,
long currentSize)
The cleanup phase of the garbage collection process terminated successfully.
|
void |
compacted()
The compaction phase of the garbage collection process terminated successfully.
|
void |
error(java.lang.String message,
java.lang.Exception exception)
An error caused the garbage collection process to terminate prematurely.
|
void |
info(java.lang.String message,
java.lang.Object... arguments)
Informal notification on the progress of garbage collection.
|
Registration |
registerGCMonitor(@NotNull GCMonitor gcMonitor)
Register a
GCMonitor . |
void |
skipped(java.lang.String reason,
java.lang.Object... arguments)
A garbage collection cycle is skipped for a specific
reason . |
void |
updateStatus(java.lang.String status)
The garbage collection entered a new phase e.g.
|
void |
warn(java.lang.String message,
java.lang.Object... arguments)
Warning about a condition that might have adverse effects on the overall
garbage collection process but does not prevent the process from running.
|
public DelegatingGCMonitor(@NotNull @NotNull java.util.Collection<? extends GCMonitor> gcMonitors)
gcMonitors
- public DelegatingGCMonitor()
public Registration registerGCMonitor(@NotNull @NotNull GCMonitor gcMonitor)
GCMonitor
.gcMonitor
- Registration
instance, which removes the registered
GCMonitor
instance when called.public void info(java.lang.String message, java.lang.Object... arguments)
GCMonitor
public void warn(java.lang.String message, java.lang.Object... arguments)
GCMonitor
public void error(java.lang.String message, java.lang.Exception exception)
GCMonitor
public void skipped(java.lang.String reason, java.lang.Object... arguments)
GCMonitor
reason
.public void compacted()
GCMonitor
public void cleaned(long reclaimedSize, long currentSize)
GCMonitor
public void updateStatus(java.lang.String status)
GCMonitor
updateStatus
in interface GCMonitor
status
- short summary of the GC phaseCopyright © 2010 - 2020 Adobe. All Rights Reserved