Class OutboundMessagesThrottlingHandler.RateLimitedQueue

java.lang.Object
org.drasyl.handler.traffic.OutboundMessagesThrottlingHandler.RateLimitedQueue
Enclosing class:
OutboundMessagesThrottlingHandler

public static class OutboundMessagesThrottlingHandler.RateLimitedQueue extends Object
  • Field Details

  • Constructor Details

    • RateLimitedQueue

      public RateLimitedQueue(long maxEventsPerSecond)
  • Method Details

    • add

      public void add(io.netty.channel.ChannelHandlerContext ctx, Runnable value)
    • tryConsume

      public boolean tryConsume()