zoukankan      html  css  js  c++  java
  • Netty设置高低水位

    Configure high and low write watermarks

     
    Server
    ServerBootstrap bootstrap = new ServerBootstrap();
    bootstrap.childOption(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK, 32 * 1024);
    bootstrap.childOption(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK, 8 * 1024);
    Client
    Bootstrap bootstrap = new Bootstrap();
    bootstrap.option(ChannelOption.WRITE_BUFFER_HIGH_WATER_MARK, 32 * 1024);
    bootstrap.option(ChannelOption.WRITE_BUFFER_LOW_WATER_MARK, 8 * 1024)

     http://normanmaurer.me/presentations/2014-twitter-meetup-netty/slides.html#10.0

    转载于:https://www.cnblogs.com/eaglediao/p/6959793.html

  • 相关阅读:
    周总结
    周总结
    周总结
    读后感
    周总结
    周总结
    周总结
    第一周总结
    大学生失物招领平台使用体验
    快速乘法+快速幂
  • 原文地址:https://www.cnblogs.com/twodog/p/12140356.html
Copyright © 2011-2022 走看看