net.tomp2p.utils

Class ChannelTrafficShapingHandler

    • Constructor Detail

      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(Executor executor,
                                    long writeLimit,
                                    long readLimit,
                                    long checkInterval)
        Parameters:
        executor -
        writeLimit -
        readLimit -
        checkInterval -
      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(Executor executor,
                                    long writeLimit,
                                    long readLimit)
        Parameters:
        executor -
        writeLimit -
        readLimit -
      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(Executor executor,
                                    long checkInterval)
        Parameters:
        executor -
        checkInterval -
      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(Executor executor)
        Parameters:
        executor -
      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
                                    Executor executor,
                                    long writeLimit,
                                    long readLimit,
                                    long checkInterval)
        Parameters:
        objectSizeEstimator -
        executor -
        writeLimit -
        readLimit -
        checkInterval -
      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
                                    Executor executor,
                                    long writeLimit,
                                    long readLimit)
        Parameters:
        objectSizeEstimator -
        executor -
        writeLimit -
        readLimit -
      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
                                    Executor executor,
                                    long checkInterval)
        Parameters:
        objectSizeEstimator -
        executor -
        checkInterval -
      • ChannelTrafficShapingHandler

        public ChannelTrafficShapingHandler(org.jboss.netty.util.ObjectSizeEstimator objectSizeEstimator,
                                    Executor executor)
        Parameters:
        objectSizeEstimator -
        executor -
    • Method Detail

      • channelClosed

        public void channelClosed(org.jboss.netty.channel.ChannelHandlerContext ctx,
                         org.jboss.netty.channel.ChannelStateEvent e)
                           throws Exception
        Overrides:
        channelClosed in class org.jboss.netty.channel.SimpleChannelHandler
        Throws:
        Exception
      • channelConnected

        public void channelConnected(org.jboss.netty.channel.ChannelHandlerContext ctx,
                            org.jboss.netty.channel.ChannelStateEvent e)
                              throws Exception
        Overrides:
        channelConnected in class org.jboss.netty.channel.SimpleChannelHandler
        Throws:
        Exception

Copyright © 2011. All Rights Reserved.