Search in sources :

Example 1 with FeedCreationActor

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");
}
Also used : ActorSystem(akka.actor.ActorSystem) ActorRef(akka.actor.ActorRef) FeedCreationActor(actors.FeedCreationActor) Props(akka.actor.Props)

Aggregations

FeedCreationActor (actors.FeedCreationActor)1 ActorRef (akka.actor.ActorRef)1 ActorSystem (akka.actor.ActorSystem)1 Props (akka.actor.Props)1