Package akka.actor
Class AbstractActorWithTimers
- java.lang.Object
-
- akka.actor.AbstractActor
-
- akka.actor.AbstractActorWithTimers
-
public abstract class AbstractActorWithTimers extends AbstractActor implements Timers
Java API: Support for scheduledself
messages viaTimerScheduler
.Timers are bound to the lifecycle of the actor that owns it, and thus are cancelled automatically when it is restarted or stopped.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.actor.AbstractActor
AbstractActor.ActorContext, AbstractActor.Receive
-
Nested classes/interfaces inherited from interface akka.actor.Actor
Actor.emptyBehavior$, Actor.ignoringBehavior$
-
-
Constructor Summary
Constructors Constructor Description AbstractActorWithTimers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TimerScheduler
getTimers()
Start and cancel timers via the enclosedTimerScheduler
.-
Methods inherited from class akka.actor.AbstractActor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, context, createReceive, emptyBehavior, getContext, getSelf, getSender, postRestart, postStop, preRestart, preRestart, preStart, receive, receiveBuilder, self, supervisorStrategy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface akka.actor.Actor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPreStart, context, postRestart, postStop, preRestart, preStart, receive, self, sender, supervisorStrategy, unhandled
-
Methods inherited from interface akka.actor.Timers
actorCell, aroundPostStop, aroundPreRestart, aroundReceive, super$aroundPostStop, super$aroundPreRestart, super$aroundReceive, timers
-
-
-
-
Method Detail
-
getTimers
public final TimerScheduler getTimers()
Start and cancel timers via the enclosedTimerScheduler
.
-
-