Annotation Interface ShardKey


@Documented @Retention(RUNTIME) @Target({PARAMETER,METHOD,TYPE}) public @interface ShardKey
Declares a canonical shard routing key without granting ownership authority. Managed lease guards support one scalar parameter with an empty value. A generated partition reducer may instead select a command record's stable decimal WireField identifier, through the registered generated schema accessor. Unsupported sites/extraction modes fail validation before construction; arbitrary reflection paths, expressions and implicit global ordering are not supported.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the legacy metadata selector or managed command's stable numeric wire-field identifier.
  • Element Details

    • value

      String value
      Returns the legacy metadata selector or managed command's stable numeric wire-field identifier.
      Returns:
      empty for a scalar key, or the explicit selector recognized by its host adapter
      Default:
      ""