private final String eventName = RollupEventEmitter.ROLLUP_EVENT_NAME;
private Random rand = new Random();
private void init() throws Exception {
try {
KafkaConfig config = new KafkaConfig();
if(config.getBooleanProperty("blueflood.enable.kafka.service")) {
numberOfProducers = config.getIntegerProperty("blueflood.producer.count") != null ? config.getIntegerProperty("blueflood.producer.count") : DEFAULT_KAFKA_PRODUCERS;
kafkaExecutors = new ThreadPoolBuilder()
.withCorePoolSize(numberOfProducers)
.withMaxPoolSize(numberOfProducers)
.withUnboundedQueue()
.build();
for(int i=0;i<numberOfProducers;i++) {
Producer producer = new Producer(new ProducerConfig(config.getKafkaProperties()));
producerList.add(producer);
}
ready = true;
}
} catch (Exception e) {