LoggingLeakCallback can be installed to enable
logging output when a leak is detected.
The logging output will be done with the ERROR level.
Note that asynchronous and fast logging should be preferred, since the callback may run inside a cleaner-thread.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final LoggingLeakCallback | |
| private static final InternalLogger |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | accept(LeakInfo
the input argument leakInfo)Implements java. |
| public static LoggingLeakCallback | Returns: An instance of theLoggingLeakCallback class.Get an instance of the |
| instance | back to summary |
|---|---|
| private static final LoggingLeakCallback instance | |
| logger | back to summary |
|---|---|
| private static final InternalLogger logger | |
| LoggingLeakCallback | back to summary |
|---|---|
| private LoggingLeakCallback() | |
| accept | back to summary |
|---|---|
| public void accept(LeakInfo leakInfo) Implements java. Doc from java. Performs this operation on the given argument. | |
| getInstance | back to summary |
|---|---|
| public static LoggingLeakCallback getInstance() Get an instance of the
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static LoggingLeakCallback. |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| LeakReport | back to summary |
|---|---|
| private LeakReport() | |
| reportFor | back to summary |
|---|---|
| pack-priv static LoggingLeakCallback. | |