Cleaned up a bit more

This commit is contained in:
Jesper Saastamoinen 2025-11-04 10:59:47 +01:00
parent 524ca47f16
commit 1b6187370f
2 changed files with 4 additions and 4 deletions

View file

@ -19,8 +19,8 @@ public class AkkaProcessor {
@Incoming("akka")
public void process(JsonObject quoteRequest) throws InterruptedException {
AkkaData data = quoteRequest.mapTo(AkkaData.class);
public void process(JsonObject object) throws InterruptedException {
AkkaData data = object.mapTo(AkkaData.class);
System.out.println("Received data from Akka: " + data);
service.saveAktor(data);
}

View file

@ -18,8 +18,8 @@ public class StaraProcessor {
private Random random = new Random();
@Incoming("stara")
public void process(JsonObject quoteRequest) throws InterruptedException {
StaraData data = quoteRequest.mapTo(StaraData.class);
public void process(JsonObject object) throws InterruptedException {
StaraData data = object.mapTo(StaraData.class);
System.out.println("Received data from Stara: " + data.toString());
service.persistStaraData(data);