Annotation Interface PartitionHandler


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface PartitionHandler
Declares a config-only deterministic POJO reducer registered as an actual partition resource. Public initial(), apply(State,Command) and query(State,Query) methods infer its concrete data contract. A trusted host profile supplies storage, peers, authentication and ownership authority. This annotation alone never starts a node or grants a remote export capability.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Returns the stable resource identity.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Returns the explicitly installed host profile name.
    int
    Returns the positive deterministic program contract version.
  • Element Details

    • resource

      String resource
      Returns the stable resource identity.
      Returns:
      nonblank ASCII identifier, at most128 characters
    • policy

      String policy
      Returns the explicitly installed host profile name.
      Returns:
      bounded profile identifier
      Default:
      "default"
    • version

      int version
      Returns the positive deterministic program contract version.
      Returns:
      positive contract version, distinct from index format version
      Default:
      1