Cleaned up a bit more
This commit is contained in:
parent
524ca47f16
commit
1b6187370f
2 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue