Package com.alibaba.otter.shared.arbitrate.impl.setl.helper

Examples of com.alibaba.otter.shared.arbitrate.impl.setl.helper.ReplyProcessQueue.offer()


        // 第一次/出现ROLLBACK/RESTART事件,删除了所有调度信号后,重新初始化一下select stage的数据,初始大小为并行度大小
        // 后续的select的reply队列变化,由load single时直接添加
        ReplyProcessQueue queue = replys.get(StageType.SELECT);
        int parallelism = ArbitrateConfigUtils.getParallelism(getPipelineId());
        while (parallelism-- > 0 && queue.size() <= parallelism) {
            queue.offer(atomicMaxProcessId.incrementAndGet());
        }
    }

    /**
     * 计算下一个load的processId
 
View Full Code Here


        // stage的数据,初始大小为并行度大小
        // 后续的select的reply队列变化,由load single时直接添加
        ReplyProcessQueue queue = replys.get(StageType.SELECT);
        int parallelism = ArbitrateConfigUtils.getParallelism(getPipelineId());
        while (parallelism-- > 0 && queue.size() <= parallelism) {
            queue.offer(atomicMaxProcessId.incrementAndGet());
        }
    }

    /**
     * 计算下一个load的processId
 
View Full Code Here

        // 第一次/出现ROLLBACK/RESTART事件,删除了所有调度信号后,重新初始化一下select stage的数据,初始大小为并行度大小
        // 后续的select的reply队列变化,由load single时直接添加
        ReplyProcessQueue queue = replys.get(StageType.SELECT);
        int parallelism = ArbitrateConfigUtils.getParallelism(getPipelineId());
        while (parallelism-- > 0 && queue.size() <= parallelism) {
            queue.offer(atomicMaxProcessId.incrementAndGet());
        }
    }

    /**
     * 计算下一个load的processId
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.