Interface CommandContext

All Superinterfaces:
Context, MetadataContext

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

    Modifier and Type
    Method
    Description
    long
    Deprecated.
    not used anymore
    The name of the command being executed.
    The id of the entity that this context is for.
    boolean
     
    long
    The current sequence number of events in this entity.
    Access to tracing for custom app specific tracing.

    Methods inherited from interface akka.javasdk.Context Link icon

    selfRegion

    Methods inherited from interface akka.javasdk.MetadataContext Link icon

    metadata
  • Method Details Link icon

    • sequenceNumber Link icon

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

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

      @Deprecated long commandId()
      Deprecated.
      not used anymore
      The id of the command being executed.
      Returns:
      The id of the command.
    • entityId Link icon

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

      boolean isDeleted()
    • tracing Link icon

      Tracing tracing()
      Access to tracing for custom app specific tracing.