现在我正在使用disruptor,我得到一个consumer-productor的简单示例。它运行完美,但我不知道buffersize的含义,我应该设置它的大小?
私有静态最终 int BUFFER_SIZE = 4;
private final RingBuffer<StockEvent> ringBuffer =
new RingBuffer<StockEvent>(StockEvent.EVENT_FACTORY,
new MultiThreadedLowContentionClaimStrategy(BUFFER_SIZE),
new YieldingWaitStrategy());
private final SequenceBarrier sequenceBarrier = ringBuffer.newBarrier();
BUFFER_SIZE 是什么意思?