com.quotemedia.streamer.client.MessageProcessor Maven / Gradle / Ivy
package com.quotemedia.streamer.client;
/**
* Marketdata message processor interface.
*/
public interface MessageProcessor {
/**
* Initializes and starts message processor.
*
* @param ondatamessage callback method that will be called during message processing
*/
void start(OnMarketDataMessage ondatamessage);
/**
* Cleans up and stops message processor.
*
*/
void stop();
/**
* Depending on realization, can call callback method synchronously or asynchronously.
*
* @param timestamp timestamp of received message
* @param message the received message
*/
void process(long timestamp, Object message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy