Disrupter官网:https://lmax-exchange.github.io/disruptor/user-guide/index.html
其中有段对案例的说明:
Firstly we need to ensure that the producers do not overrun consumers. This is handled by adding the relevant consumers to the Disruptor by calling
RingBuffer.addGatingConsumers()
.Secondly, the case referred to previously is implemented by constructing a SequenceBarrier containing Sequences from the components that must complete their processing first.
其中,在其4.0版本与3.4版本均未找到这个方法 RingBuffer.addGatingConsumers()
.,只有addGatingSequences(),后续再研究研究这个地方