Esempio n. 1
0
 @Bind(aggregate = true, optional = true)
 public void bindScheduled(Scheduled scheduled) {
   List<Job> extracted = extractJobsFromScheduled(scheduled);
   for (Job job : extracted) {
     job.submitted(
         akka.system()
             .scheduler()
             .schedule(
                 job.duration(), job.duration(), job.function(), akka.system().dispatcher()));
     jobs.add(job);
   }
 }