public interface LRARecoveryService
Modifier and Type | Method and Description |
---|---|
void |
waitForCallbacks(URI lraId)
Wait for the delivery of Complete and Compensate participant callbacks.
|
boolean |
waitForEndPhaseReplay(URI lraId)
Wait for one replay of the end phase of the LRA (the callback calls to Status, Complete, Compensate, and Forget
methods of all Compensating/Completing participants.
|
default void |
waitForRecovery(URI lraId)
Wait for all participants to reach an end state and for all
AfterLRA notifications to be successfully delivered (AfterLRA
methods return HTTP 200). |
void waitForCallbacks(URI lraId) throws LRACallbackException
lraId
- the LRA contextLRACallbackException
- the implementation was unable to determine whether or not the callbacks were received by all
participantsdefault void waitForRecovery(URI lraId) throws LRACallbackException
AfterLRA
notifications to be successfully delivered (AfterLRA
methods return HTTP 200).
The default implementation iterates waitForEndPhaseReplay(URI)
until all participants
reach a final state and all AfterLRA listeners notifications are successfully delivered.lraId
- the LRA contextLRACallbackException
- the implementation was unable to determine whether or not all participants have reached an end state
and whether or not all listeners have been successfully notifiedboolean waitForEndPhaseReplay(URI lraId) throws LRACallbackException
lraId
- the LRA contextLRACallbackException
- the implementation has no knowledge of this LRA or it was unable to retry the requests to all
participants so it does not make sense to trigger this method with the same argument againCopyright © 2018 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.