i learn that LMAX disruptor is a High Performance Inter-Thread Messaging Library. But when i try to use it ,i found that the eventhandler use a callback method to process the data.
void onEvent(T event,
long sequence,
boolean endOfBatch)
throws java.lang.Exception
Called when a publisher has published an event to the RingBuffer
But if i don't use callback to get data, i write a while(true) to get data by my self, what should i do ?
thanks!