Class AbstractLoggingActorWithTimers

java.lang.Object
org.apache.pekko.actor.AbstractActor
org.apache.pekko.actor.AbstractLoggingActorWithTimers
All Implemented Interfaces:
Actor, ActorLogging, Timers

public abstract class AbstractLoggingActorWithTimers extends AbstractActor implements Timers, ActorLogging
Java API: Support for scheduled self messages via TimerScheduler, with logging.

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

Since:
2.0.0
  • Constructor Details

    • AbstractLoggingActorWithTimers

      public AbstractLoggingActorWithTimers()
  • Method Details

    • getTimers

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