mirror of
https://github.com/elicpeter/nyx.git
synced 2026-06-09 19:45:13 +02:00
12 lines
338 B
Java
12 lines
338 B
Java
// Phase 20 (Track M.2) — Kafka Java benign control.
|
|
|
|
import org.springframework.kafka.annotation.KafkaListener;
|
|
|
|
public class Benign {
|
|
public Benign() {}
|
|
|
|
@KafkaListener(topics = "orders")
|
|
public void onMessage(String body) throws Exception {
|
|
new ProcessBuilder("echo", body).inheritIO().start().waitFor();
|
|
}
|
|
}
|