@RabbitListener(queues = "/app/racetracks/roundtime") public void onRoundPassedMessage(RoundTimeMessage roundTimeMessage) throws Exception { LOG.trace("Got round-passed message " + roundTimeMessage); relayService.collectRoundPassedMessage(roundTimeMessage); }
@RabbitListener(queues = "/app/racetracks/penalty") public void onPenalty(PenaltyMessage penaltyMessage) { LOG.trace("Got penalty message " + penaltyMessage); relayService.collectPenaltyMessage(penaltyMessage); }
@RabbitListener(queues = "/app/racetracks/events") public void onSensor(SensorEvent sensorEvent) { LOG.trace("Got sensor event " + sensorEvent); relayService.collectSensorEvent(sensorEvent); }
@RabbitListener(queues = "/app/racetracks/velocity") public void onVelocity(VelocityMessage velocityMessage) { LOG.trace("Got velocity message " + velocityMessage); relayService.collectVelocityMessage(velocityMessage); }
@RabbitListener(queues = "/app/racetracks/announce") public void onAnnounce(RaceTrack raceTrack) { LOG.trace("Got announce " + raceTrack); relayService.announce(raceTrack); }