public interface Participant
Participant metadata needed by LRA coordinator.
  • Method Details

    • compensate

      Optional<URI> compensate()
      URI of participant's method annotated with @Compensate. Expected to be called by coordinator in case LRA participant is enrolled in is cancelled.
      Returns:
      URI of JaxRs compensating resource or empty
    • complete

      Optional<URI> complete()
      URI of participant's method annotated with @Complete. Expected to be called by coordinator in case LRA participant is enrolled in is completed.
      Returns:
      URI of JaxRs completion resource or empty
    • forget

      Optional<URI> forget()
      URI of participant's method annotated with @Forget. Expected to be called by coordinator in case LRA closing/completing takes longer, e.g. complete/compensate methods are not independent and coordinator needs to recover (wait and query) actual status of participant.
      Returns:
      URI of JaxRs forget resource or empty
    • leave

      Optional<URI> leave()
      URI of participant's method annotated with @Leave.
      Returns:
      URI of JaxRs leave resource or empty
    • after

      Optional<URI> after()
      URI of participant's method annotated with @AfterLRA.
      Returns:
      URI of JaxRs after LRA resource or empty
    • status

      Optional<URI> status()
      URI of participant's method annotated with @Status. Expected to be called by coordinator in case it needs to ask for participant status.
      Returns:
      URI of JaxRs status resource or empty