public void run() {
        try {
            while (true) {
                String message = producer.getMessage();
                System.out.println("Got message: " + message);
                Thread.sleep(1500);
            }
        } catch (InterruptedException e) {
        }
    }