Class LoggingLeakCallback

  • All Implemented Interfaces:
    Consumer<LeakInfo>

    public final class LoggingLeakCallback
    extends Object
    implements Consumer<LeakInfo>
    The 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.