package com.inmobi.messaging.consumer.examples;

import com.inmobi.messaging.Message;
import com.inmobi.messaging.consumer.MessageConsumer;
import com.inmobi.messaging.consumer.MessageConsumerFactory;

/**
 * Creates DatabusConsumer from  configuration in classpath and consumes
 * messages to print on the screen. 
 */
public class ConsoleClient {

  public static void main(String[] args) throws Exception {
    MessageConsumer consumer = MessageConsumerFactory.create();
    
    while (true) {
      for (int i = 0; i < 1000; i++) {
        Message msg = consumer.next();
        System.out.println("MESSAGE:" + new String(msg.getData().array()));
      }
    }
  }
}

@@ -495,49 +495,8 @@
 ) %7B%0A
-      for (int i = 0; i %3C 1000; i++) %7B%0A  
     
@@ -528,18 +528,16 @@
 next();%0A
-  
       Sy
@@ -606,16 +606,8 @@
 ));%0A
-      %7D%0A
     

Remove unnecessary for loop