Class EventLoopBacklogMonitor

java.lang.Object
org.drasyl.util.EventLoopBacklogMonitor

@UnstableApi public final class EventLoopBacklogMonitor extends Object
This utility class can be used to monitor the number of pending tasks of EventLoops. If a given threshold is reached, the current number of pending tasks is logged.
  • 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)