- java.lang.Object
-
- io.netty5.buffer.api.LoggingLeakCallback
-
public final class LoggingLeakCallback extends Object implements Consumer<LeakInfo>
TheLoggingLeakCallbackcan be installed to enable logging output when a leak is detected.The logging output will be done with the
ERRORlevel.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 voidaccept(LeakInfo leakInfo)static LoggingLeakCallbackgetInstance()Get an instance of theLoggingLeakCallback.
-
-
-
Method Detail
-
getInstance
public static LoggingLeakCallback getInstance()
Get an instance of theLoggingLeakCallback.- Returns:
- An instance of the
LoggingLeakCallbackclass.
-
-