Package org.drasyl.util
Class EventLoopBacklogMonitor
java.lang.Object
org.drasyl.util.EventLoopBacklogMonitor
This utility class can be used to monitor the number of pending tasks of
EventLoop
s. If a given threshold is reached, the current number of pending
tasks is logged.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
monitorBacklog
(io.netty.channel.EventLoopGroup... groups)
-
Field Details
-
THRESHOLD
public static final int THRESHOLD -
PERIOD
public static final int PERIOD
-
-
Method Details
-
monitorBacklog
public static void monitorBacklog(io.netty.channel.EventLoopGroup... groups)
-