Interface Participant
-
public interface Participant
Participant metadata needed by LRA coordinator.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<URI>
after()
URI of participant's method annotated with@AfterLRA
.Optional<URI>
compensate()
URI of participant's method annotated with@Compensate
.Optional<URI>
complete()
URI of participant's method annotated with@Complete
.Optional<URI>
forget()
URI of participant's method annotated with@Forget
.Optional<URI>
leave()
URI of participant's method annotated with@Leave
.Optional<URI>
status()
URI of participant's method annotated with@Status
.
-
-
-
Method Detail
-
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
-
-