Class AbstractActorWithTimers

java.lang.Object
org.apache.pekko.actor.AbstractActor
org.apache.pekko.actor.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 Details

    • AbstractActorWithTimers

      public AbstractActorWithTimers()
  • Method Details

    • getTimers

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