Class ChannelOutputLimiter

java.lang.Object
io.netty.channel.ChannelHandlerAdapter
io.netty.channel.ChannelInboundHandlerAdapter
org.opendaylight.protocol.bgp.rib.impl.ChannelOutputLimiter
All Implemented Interfaces:
io.netty.channel.ChannelHandler, io.netty.channel.ChannelInboundHandler

public final class ChannelOutputLimiter extends io.netty.channel.ChannelInboundHandlerAdapter
A best-effort output limiter. It does not provide any fairness, and acts as a blocking gate-keeper for a session's channel.

This class is thread-safe.

  • Nested Class Summary Link icon

    Nested classes/interfaces inherited from interface io.netty.channel.ChannelHandler Link icon

    io.netty.channel.ChannelHandler.Sharable
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    channelInactive(io.netty.channel.ChannelHandlerContext ctx)
     
    void
    channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx)
     
    void
     
    void
    write(org.opendaylight.yangtools.binding.Notification<?> msg)
     

    Methods inherited from class io.netty.channel.ChannelInboundHandlerAdapter Link icon

    channelActive, channelRead, channelReadComplete, channelRegistered, channelUnregistered, exceptionCaught, userEventTriggered

    Methods inherited from class io.netty.channel.ChannelHandlerAdapter Link icon

    ensureNotSharable, handlerAdded, handlerRemoved, isSharable

    Methods inherited from class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.netty.channel.ChannelHandler Link icon

    handlerAdded, handlerRemoved
  • Method Details Link icon

    • write Link icon

      public void write(org.opendaylight.yangtools.binding.Notification<?> msg)
    • flush Link icon

      public void flush()
    • channelWritabilityChanged Link icon

      public void channelWritabilityChanged(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelWritabilityChanged in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelWritabilityChanged in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception
    • channelInactive Link icon

      public void channelInactive(io.netty.channel.ChannelHandlerContext ctx) throws Exception
      Specified by:
      channelInactive in interface io.netty.channel.ChannelInboundHandler
      Overrides:
      channelInactive in class io.netty.channel.ChannelInboundHandlerAdapter
      Throws:
      Exception