Package akka.javasdk.timedaction
Class TimedAction
Object
akka.javasdk.timedaction.TimedAction
TimedAction is stateless component that can be used together with a
TimerScheduler to
schedule an action.
A TimedAction method should return an TimedAction.Effect that describes the result of the action
invocation.
Concrete classes can accept the following types to the constructor:
ComponentClientHttpClientProviderTimerSchedulerMaterializerConfig- Custom types provided by a
DependencyProviderfrom the service setup
Concrete class must be annotated with Component.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn Effect is a description of what the runtime needs to do after the command is handled. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final CommandContextAdditional context and metadata for a message handler.effects()final TimerSchedulertimers()Returns aTimerSchedulerthat can be used to schedule further in time.
-
Constructor Details
-
TimedAction
public TimedAction()
-
-
Method Details
-
commandContext
Additional context and metadata for a message handler.It will throw an exception if accessed from constructor.
-
effects
-
timers
Returns aTimerSchedulerthat can be used to schedule further in time.
-