package de.juplo.kafka;
+import jakarta.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;
-import javax.validation.constraints.NotEmpty;
-import javax.validation.constraints.NotNull;
-
@ConfigurationProperties(prefix = "juplo")
@Validated
private void handleRecord(
@Header(KafkaHeaders.RECEIVED_TOPIC)
String topic,
- @Header(KafkaHeaders.RECEIVED_PARTITION_ID)
+ @Header(KafkaHeaders.RECEIVED_PARTITION)
Integer partition,
@Header(KafkaHeaders.OFFSET)
Long offset,
- @Header(KafkaHeaders.RECEIVED_MESSAGE_KEY)
+ @Header(KafkaHeaders.RECEIVED_KEY)
String key,
@Payload
String value)