- java.lang.Object
-
- io.netty5.buffer.api.LoggingLeakCallback
-
public final class LoggingLeakCallback extends Object implements Consumer<LeakInfo>
TheLoggingLeakCallback
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.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(LeakInfo leakInfo)
static LoggingLeakCallback
getInstance()
Get an instance of theLoggingLeakCallback
.
-
-
-
Method Detail
-
getInstance
public static LoggingLeakCallback getInstance()
Get an instance of theLoggingLeakCallback
.- Returns:
- An instance of the
LoggingLeakCallback
class.
-
-