SequenceBarrier positionBarrier = ringBuffer.newBarrier(tradeProcessor.getSequence(),
rateProcessor.getSequence());
EventProcessor portfolioPositionProcessor = createPortfolioPositionProcessor(ringBuffer, positionBarrier);
// Netty Event Publisher
TextMessageGateway gateway = createGatewayEventPublisher(ringBuffer);
// The producer can't move past this barrier.
ringBuffer.setGatingSequences(tradeProcessor.getSequence(), rateProcessor.getSequence(),
portfolioPositionProcessor.getSequence());