Thread.sleep(brokerSleepMs);
// Add messages to the BlockingEnvelopeMap.
for (SystemStreamPartition ssp : sspsToFetch) {
for (int i = 0; i < messagesPerBatch; ++i) {
put(ssp, new IncomingMessageEnvelope(ssp, "0", "key", "value"));
}
}
}
} catch (InterruptedException e) {
System.out.println("Got interrupt. Shutting down.");