LRA
and is invoked in the context of an LRA then
the resource can ask to be notified when the LRA finishes
by marking one of the other methods in the class with
the @AfterLRA
annotation.@Compensate
then this
method will be invoked if the LRA is cancelled.@Complete
(as well as method
annotated with @Compensate
) then this Complete
method will be invoked if the LRA is closed.Status
) until explicitly told that it can clean
up using this @Forget
annotation.@Leave
and is invoked in the context of
an LRA and if the bean class has registered a participant with that LRA then
it will be removed from the LRA just before the bean method is entered.AfterLRA
annotation.Compensate
, Complete
,
Status
, Forget
, and AfterLRA
) in the context
of a nested LRA it must ensure that the parent LRA is made available
via an HTTP header field with the following name.Response
or Response.ResponseBuilder
for the response that should be returned from the LRA JAX-RS methods.LRAStatus.Active
is entered when an LRA is created.ParticipantStatus.Active
is entered when a participant is first
associated with a Long Running Action.Compensate
and Complete
annotated methods may lose track of the status of
a participant.Copyright © 2018 – 2021 Eclipse Foundation. All rights reserved.
Use is subject to license terms.