RingBuffer<MarketEvent> ringBuffer = new RingBuffer<MarketEvent>(MarketEvent.FACTORY, getClaimStrategy(),
waitStrategy);
// Initial barrier
SequenceBarrier translationBarrier = ringBuffer.newBarrier();
EventProcessor tradeProcessor = createTradeProcessor(ringBuffer, translationBarrier);
EventProcessor rateProcessor = createRateProcessor(ringBuffer, translationBarrier);
// Add the portfolio position aggregator with a barrier after both
// processors.
SequenceBarrier positionBarrier = ringBuffer.newBarrier(tradeProcessor.getSequence(),
rateProcessor.getSequence());
EventProcessor portfolioPositionProcessor = createPortfolioPositionProcessor(ringBuffer, positionBarrier);
// Netty Event Publisher
TextMessageGateway gateway = createGatewayEventPublisher(ringBuffer);