<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>libs/</classpathPrefix>
- <mainClass>de.juplo.kafka.SimpleProducer</mainClass>
+ <mainClass>de.juplo.kafka.ExampleProducer</mainClass>
</manifest>
</archive>
</configuration>
@Slf4j
-public class SimpleProducer
+public class ExampleProducer
{
private final String id;
private final String topic;
private volatile boolean running = true;
private volatile boolean done = false;
- public SimpleProducer(String broker, String topic, String clientId)
+ public ExampleProducer(String broker, String topic, String clientId)
{
Properties props = new Properties();
props.put("bootstrap.servers", broker);
broker = args[0];
}
- SimpleProducer instance = new SimpleProducer(broker, topic, clientId);
+ ExampleProducer instance = new ExampleProducer(broker, topic, clientId);
Runtime.getRuntime().addShutdownHook(new Thread(() ->
{
}));
log.info(
- "Running SimpleProducer: broker={}, topic={}, client-id={}",
+ "Running ExampleProducer: broker={}, topic={}, client-id={}",
broker,
topic,
clientId);