use of actors.FeedCreationActor in project modules.playframework.org by playframework.
the class Global method scheduleJobs.
public void scheduleJobs() {
ActorSystem actorSystem = Akka.system();
ActorRef feedCreationActor = actorSystem.actorOf(new Props(FeedCreationActor.class));
actorSystem.scheduler().schedule(Duration.create(0, TimeUnit.MILLISECONDS), Duration.create(1, TimeUnit.HOURS), feedCreationActor, "generate");
}
Aggregations