netty5/common/src/main
时无两丶 6158c40f45 Introduce needReport for ResourceLeakDetector. (#9910)
Motivation:

We can extend `ResourceLeakDetector` through `ResourceLeakDetectorFactory`, and then report the leaked information by covering `reportTracedLeak` and `reportUntracedLeak`. However, the behavior of `reportTracedLeak` and `reportUntracedLeak` is controlled by `logger.isErrorEnabled()`, which is not reasonable. In the case of extending `ResourceLeakDetector`, we sometimes need `needReport` to always return true instead of relying on `logger.isErrorEnabled ()`.

Modification:

introduce `needReport` method and let it be `protected`

Result:

We can control the report leak behavior.
2020-01-10 05:22:05 +01:00
..
java/io/netty/util Introduce needReport for ResourceLeakDetector. (#9910) 2020-01-10 05:22:05 +01:00
resources/META-INF Add BlockHound integration that detects blocking calls in event loops (#9687) 2019-10-25 15:14:44 +02:00
script Make IntObjectHashMap extend Map 2015-07-22 15:52:27 -07:00
templates/io/netty/util/collection Support removal using values iterator. (#8866) 2019-02-26 21:29:07 +01:00