<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs/</classpathPrefix>
- <mainClass>de.juplo.kafka.SimpleConsumer</mainClass>
+ <mainClass>de.juplo.kafka.ExampleConsumer</mainClass>
</manifest>
</archive>
</configuration>
@Slf4j
-public class SimpleConsumer
+public class ExampleConsumer
{
private final String id;
private final String topic;
private volatile boolean running = false;
private long consumed = 0;
- public SimpleConsumer(String broker, String topic, String groupId, String clientId)
+ public ExampleConsumer(String broker, String topic, String groupId, String clientId)
{
Properties props = new Properties();
props.put("bootstrap.servers", broker);
}
- SimpleConsumer instance = new SimpleConsumer(broker, topic, groupId, clientId);
+ ExampleConsumer instance = new ExampleConsumer(broker, topic, groupId, clientId);
Runtime.getRuntime().addShutdownHook(new Thread(() ->
{