*
* @param ringBuffer
* @return
*/
private TextMessageGateway createGatewayEventPublisher(RingBuffer<MarketEvent> ringBuffer) {
MarketEventPublisher eventPublisher = new MarketEventPublisher(new RingBufferAdapter<MarketEvent>(ringBuffer));
TextMessageGateway gateway = new TextMessageGateway(eventPublisher, this);
return gateway;
}