Interface Participant
public interface Participant
Participant metadata needed by LRA coordinator.
-
Method Summary
Modifier and TypeMethodDescriptionafter()URI of participant's method annotated with@AfterLRA.URI of participant's method annotated with@Compensate.complete()URI of participant's method annotated with@Complete.forget()URI of participant's method annotated with@Forget.leave()URI of participant's method annotated with@Leave.status()URI of participant's method annotated with@Status.
-
Method Details
-
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
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
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
URI of participant's method annotated with@Leave.- Returns:
- URI of JaxRs leave resource or empty
-
after
URI of participant's method annotated with@AfterLRA.- Returns:
- URI of JaxRs after LRA resource or empty
-
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
-