@ApplicationScoped
public interface LRAManagement
| Modifier and Type | Method and Description |
|---|---|
String |
joinLRA(LRAParticipant participant,
URL lraId)
Join an existing LRA.
|
String |
joinLRA(LRAParticipant participant,
URL lraId,
Long timeLimit,
TimeUnit unit)
Join an existing LRA.
|
void |
registerDeserializer(LRAParticipantDeserializer deserializer)
Register an object for recreating participants during recovery.
|
void |
unregisterDeserializer(LRAParticipantDeserializer deserializer)
Unregister a participant deserializer.
|
String joinLRA(LRAParticipant participant, URL lraId, Long timeLimit, TimeUnit unit) throws JoinLRAException
participant - an instance of a LRAParticipant that will be
notified when the target LRA endslraId - the LRA that the join request pertains to @param timeLimit
the time for which the participant should remain valid. When
this time limit is exceeded the participant may longer be able
to fulfil the protocol guarantees.unit - the unit that the timeLimit parameter is expressed inJoinLRAException - if the request to the coordinator failed.
Throwable.getCause() and/or
JoinLRAException.getStatusCode() may provide a more specific reasonString joinLRA(LRAParticipant participant, URL lraId) throws JoinLRAException
participant - an instance of a LRAParticipant that will be
notified when the target LRA endslraId - the LRA that the join request pertains toJoinLRAException - if the request to the coordinator failed.
Throwable.getCause() and/or
JoinLRAException.getStatusCode() may provide a more specific reasonvoid registerDeserializer(LRAParticipantDeserializer deserializer)
deserializer - an object that knows how to recreate participants.
Note that when the LRA manager is recreating a
participant it may run through all registered
deserializers. In recovery scenarios the first such
deserializer returning a valid LRAParticipant
is used for sending completion or compensation
notificationsvoid unregisterDeserializer(LRAParticipantDeserializer deserializer)
deserializer - the deserializer to unregisterCopyright © 2018 Eclipse Foundation. All rights reserved.