Class AbstractActorWithTimers

  • All Implemented Interfaces:
    Actor, Timers

    public abstract class AbstractActorWithTimers
    extends AbstractActor
    implements Timers
    Java API: Support for scheduled self messages via TimerScheduler.

    Timers are bound to the lifecycle of the actor that owns it, and thus are cancelled automatically when it is restarted or stopped.

    • Constructor Detail

      • AbstractActorWithTimers

        public AbstractActorWithTimers()
    • Method Detail

      • getTimers

        public final TimerScheduler getTimers()
        Start and cancel timers via the enclosed TimerScheduler.