7374757677787980818283
consumer.setUncaughtExceptionHandler(handler); consumers.add(consumer); consumer.start(); } for (Consumer consumer : consumers) { consumer.join(); } } catch (Throwable t) { LOG.error("Consumer failed", t); System.exit(1); }