Class ScheduledActivityCreator


  • @Component
    public class ScheduledActivityCreator
    extends java.lang.Object
    Component class responsible for creating and scheduling of activities
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void createActivity()
      A scheduled event, that happens at 06:00 every day If the amount of activities are less than 3 at that moment, 3 activities will be created
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScheduledActivityCreator

        public ScheduledActivityCreator()
    • Method Detail

      • createActivity

        @Scheduled(cron="0 0 6 * * *")
        public void createActivity()
        A scheduled event, that happens at 06:00 every day If the amount of activities are less than 3 at that moment, 3 activities will be created