| Package | Description |
|---|---|
| org.eclipse.microprofile.lra.client |
| Modifier and Type | Method and Description |
|---|---|
String |
LRAClient.cancelLRA(URL lraId)
Attempt to cancel an LRA
Trigger compensation of all participants enlisted with the LRA (ie the
compensate message will be sent to each participant).
|
String |
LRAClient.closeLRA(URL lraId)
Attempt to close an LRA
Tells the LRA to close normally.
|
List<LRAInfo> |
LRAClient.getActiveLRAs()
Lookup active LRAs
|
List<LRAInfo> |
LRAClient.getAllLRAs()
Returns all (both active and recovering) LRAs
|
List<LRAInfo> |
LRAClient.getRecoveringLRAs()
List recovering Long Running Actions
|
Optional<CompensatorStatus> |
LRAClient.getStatus(URL lraId)
Lookup the status of an LRA
|
Boolean |
LRAClient.isActiveLRA(URL lraId)
Indicates whether an LRA is active.
|
Boolean |
LRAClient.isCompensatedLRA(URL lraId)
Indicates whether an LRA was compensated.
|
Boolean |
LRAClient.isCompletedLRA(URL lraId)
Indicates whether an LRA is complete.
|
String |
LRAClient.joinLRA(URL lraId,
Class<?> resourceClass,
URI baseUri,
String compensatorData)
Join an LRA passing in a class that will act as the participant.
|
String |
LRAClient.joinLRA(URL lraId,
Long timelimit,
URL compensateUrl,
URL completeUrl,
URL forgetUrl,
URL leaveUrl,
URL statusUrl,
String compensatorData)
A participant can join with the LRA at any time prior to the completion of
an activity.
|
void |
LRAClient.leaveLRA(URL lraId,
String body)
A Compensator can resign from the LRA at any time prior to the completion
of an activity
|
URL |
LRAClient.startLRA(String clientID,
Long timeout,
TimeUnit unit)
Start a top level LRA (ie similar to
LRAClient.startLRA(URL, String, Long, TimeUnit) |
URL |
LRAClient.startLRA(URL parentLRA,
String clientID,
Long timeout,
TimeUnit unit)
Start a new LRA
If the LRA was started during a JAX-RS resource method invocation then the
id of the new LRA will be made available as the JAX-RS response header
LRAClient.LRA_HTTP_HEADER |
URL |
LRAClient.updateCompensator(URL recoveryUrl,
URL compensateUrl,
URL completeUrl,
URL forgetUrl,
URL statusUrl,
String compensatorData)
Change the endpoints that a participant can be contacted on.
|
Copyright © 2018 Eclipse Foundation. All rights reserved.