</parent>
<groupId>de.juplo.kafka</groupId>
- <artifactId>rest-producer</artifactId>
- <name>REST Producer</name>
- <description>A Simple Producer that takes messages via POST and confirms successs</description>
+ <artifactId>sumup-producer</artifactId>
+ <name>SumUp-Producer</name>
+ <description>A Producer that reads computation requests from an incomming topic and generates according messages for the SumUp-Consumer on an outgoing topic</description>
<version>1.0-SNAPSHOT</version>
<dependencies>
{
private final String id;
private final String topic;
- private final Integer partition;
private final KafkaProducer<String, String> producer;
private long produced = 0;
{
this.id = properties.getClientId();
this.topic = properties.getTopic();
- this.partition = properties.getPartition();
Properties props = new Properties();
props.put("bootstrap.servers", properties.getBootstrapServer());
public DeferredResult<ProduceResult> send(
@PathVariable String key,
@RequestHeader(name = "X-id", required = false) Long correlationId,
- @RequestBody String value)
+ @RequestBody Integer value)
{
DeferredResult<ProduceResult> result = new DeferredResult<>();