public interface Lra
Long Running Action managed by coordinator.
  • Field Details

    • LRA_HTTP_CONTEXT_HEADER_NAME

      static final HeaderName LRA_HTTP_CONTEXT_HEADER_NAME
      LRA header name.
    • LRA_HTTP_ENDED_CONTEXT_HEADER_NAME

      static final HeaderName LRA_HTTP_ENDED_CONTEXT_HEADER_NAME
      LRA ended header name.
    • LRA_HTTP_PARENT_CONTEXT_HEADER_NAME

      static final HeaderName LRA_HTTP_PARENT_CONTEXT_HEADER_NAME
      LRA parent header name.
    • LRA_HTTP_RECOVERY_HEADER_NAME

      static final HeaderName LRA_HTTP_RECOVERY_HEADER_NAME
      LRA recovery header name.
  • Method Details

    • lraId

      String lraId()
      ID of the LRA used by this coordinator.
      Returns:
      lraId without coordinator URI prefix
    • parentId

      String parentId()
      LRA ID of the parent LRA if this LRA has any.
      Returns:
      id of parent LRA or null
    • isChild

      boolean isChild()
      Returns true if this LRA has parent LRA.
      Returns:
      true if LRA has parent
    • timeout

      long timeout()
      Returns exact time when will LRA timeout in millis.
      Returns:
      time of timeout in millis
    • participants

      List<Participant> participants()
      All participants enrolled in this LRA.
      Returns:
      list of participants enrolled in this LRA
    • status

      LRAStatus status()
      Status of this LRA.
      Returns:
      status