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:
ComponentClient
HttpClientProvider
TimerScheduler
Materializer
Config
- Custom types provided by a
DependencyProvider
from the service setup
Concrete class must be annotated with ComponentId
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
An Effect is a description of what the runtime needs to do after the command is handled. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final CommandContext
Additional context and metadata for a message handler.effects()
final TimerScheduler
timers()
Returns aTimerScheduler
that 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 aTimerScheduler
that can be used to schedule further in time.
-