Class TimedAction

Object
akka.javasdk.timedaction.TimedAction

public abstract class TimedAction extends Object
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:

Concrete class must be annotated with ComponentId.

  • Constructor Details

    • TimedAction

      public TimedAction()
  • Method Details

    • commandContext

      protected final CommandContext commandContext()
      Additional context and metadata for a message handler.

      It will throw an exception if accessed from constructor.

    • effects

      public final TimedAction.Effect.Builder effects()
    • timers

      public final TimerScheduler timers()
      Returns a TimerScheduler that can be used to schedule further in time.