MemoryStageController.java 文件源码

java
阅读 34 收藏 0 点赞 0 评论 0

项目:otter 作者:
public MemoryStageController(Long pipelineId){
    super(pipelineId);

    replys = OtterMigrateMap.makeComputingMap(new Function<StageType, ReplyProcessQueue>() {

        public ReplyProcessQueue apply(StageType input) {
            int size = ArbitrateConfigUtils.getParallelism(getPipelineId()) * 10;
            if (size < 100) {
                size = 100;
            }
            return new ReplyProcessQueue(size);
        }
    });

    progress = new MapMaker().makeMap();
    termins = new LinkedBlockingQueue<TerminEventData>(20);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号