diff options
Diffstat (limited to 'src/main/java/com/att')
-rw-r--r-- | src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java b/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java index 88c5fd9..5565704 100644 --- a/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java +++ b/src/main/java/com/att/dmf/mr/service/impl/EventsServiceImpl.java @@ -489,7 +489,7 @@ public class EventsServiceImpl implements EventsService { final LinkedList<Publisher.message> batch = new LinkedList<>(); // final ArrayList<KeyedMessage<String, String>> kms = new - // ArrayList<KeyedMessage<String, String>>(); + final ArrayList<ProducerRecord<String, String>> pms = new ArrayList<>(); try { // for each message... @@ -499,7 +499,7 @@ public class EventsServiceImpl implements EventsService { batch.add(m); // final KeyedMessage<String, String> data = new // KeyedMessage<String, String>(topic, m.getKey(), - // m.getMessage()); + // kms.add(data); final ProducerRecord<String, String> data = new ProducerRecord<String, String>(topic, m.getKey(), m.getMessage()); @@ -509,7 +509,7 @@ public class EventsServiceImpl implements EventsService { final int sizeNow = batch.size(); if (sizeNow > maxEventBatch) { // ctx.getConfigReader().getfPublisher().sendBatchMessage(topic, - // kms); + // kms.clear(); ctx.getConfigReader().getfPublisher().sendBatchMessageNew(topic, pms); pms.clear(); |