Interface CommandContext

All Superinterfaces:
Context, MetadataContext

public interface CommandContext extends MetadataContext
An event sourced command context.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    The id of the command being executed.
    The name of the command being executed.
    The id of the entity that this context is for.
    long
    The current sequence number of events in this entity.

    Methods inherited from interface akka.javasdk.MetadataContext

    metadata
  • Method Details

    • sequenceNumber

      long sequenceNumber()
      The current sequence number of events in this entity.
      Returns:
      The current sequence number.
    • commandName

      String commandName()
      The name of the command being executed.
      Returns:
      The name of the command.
    • commandId

      long commandId()
      The id of the command being executed.
      Returns:
      The id of the command.
    • entityId

      String entityId()
      The id of the entity that this context is for.
      Returns:
      The entity id.