'Timed behaviors in Akka classic?

I am working with Akka classic, and have to setup timed behaviors - in Akka typed, I could do this using Behaviors.withTimers how do I accomplish this in Akka classic? It seems like we can create an actor in Akka using

public static Props props() {
    return Props.create(actor.class, () -> new actor());
}

How do I use timers in this kind of initialization?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source