Class TournamentService

  • All Implemented Interfaces:
    javax.jms.MessageListener

    @EnableScheduling
    @Service
    @Configuration
    public class TournamentService
    extends Object
    implements javax.jms.MessageListener
    Author:
    Jurica Babic, Govert Buijs, Erik Kemperman
    • Constructor Detail

      • TournamentService

        public TournamentService()
    • Method Detail

      • afterPropertiesSet

        @PostConstruct
        public void afterPropertiesSet()
                                throws Exception
        Throws:
        Exception
      • init

        public void init()
        Called on initialization to start message feeder and state machine.
      • getTournamentState

        public String getTournamentState()
      • onMessage

        public void onMessage​(javax.jms.Message message)
        Specified by:
        onMessage in interface javax.jms.MessageListener
      • addTick

        @Scheduled(fixedRate=30000L)
        public void addTick()