public class ActorScheduler extends Object implements Scheduler
Scheduler.Worker
Disposable.Composite, Disposable.Swap
Modifier and Type | Method and Description |
---|---|
Scheduler.Worker |
createWorker() |
static Scheduler |
from(akka.actor.ActorRef actorRef) |
static Scheduler |
from(akka.actor.ActorSystem system) |
Disposable |
schedule(Runnable task) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, disposeGracefully, init, now, schedule, schedulePeriodically, start
isDisposed
public static Scheduler from(akka.actor.ActorSystem system)
system
- an ActorSystem
Scheduler
public static Scheduler from(akka.actor.ActorRef actorRef)
actorRef
- an ActorRef
Scheduler
public Disposable schedule(Runnable task)
public Scheduler.Worker createWorker()
createWorker
in interface Scheduler