public interface ParticipantsManager
Modifier and Type | Method and Description |
---|---|
String |
enlist(String applicationId,
String participantEnlistmentURL,
Participant participant)
Enlist participant to REST-AT transaction.
|
void |
enlistVolatileParticipant(String volatileParticipantEnlistmentURL,
VolatileParticipant volatileParticipant)
Enlist volatile participant to REST-AT transaction.
|
String |
getBaseUrl()
Returns the URL of the deployment which contains the ParticipantsManager.
|
void |
registerDeserializer(String applicationId,
ParticipantDeserializer deserializer)
Register ParticipantDeserializer instance which can be used during recovery to recreate participant instances.
|
void |
reportHeuristic(String participantId,
HeuristicType heuristicType)
Report heuristic decision.
|
void |
setBaseUrl(String baseUrl)
Set the URL of the deployment which contains the ParticipantsManager.
|
String getBaseUrl()
void setBaseUrl(String baseUrl)
baseUrl
- String enlist(String applicationId, String participantEnlistmentURL, Participant participant)
applicationId
- Application ID unique in the container scope.participantEnlistmentURL
- Participant enlistment URL returned by the transaction manager after creating
REST-AT transaction.participant
- Participant to be enlisted.void enlistVolatileParticipant(String volatileParticipantEnlistmentURL, VolatileParticipant volatileParticipant)
volatileParticipantEnlistmentURL
- VolatileParticipant enlistment URL returned by the transaction manager
after creating REST-AT transaction.volatileParticipant
- VolatileParticipant to be enlisted.void registerDeserializer(String applicationId, ParticipantDeserializer deserializer)
applicationId
- Application ID unique in the container scope.deserializer
- Instance of ParticipantDeserializer.void reportHeuristic(String participantId, HeuristicType heuristicType)
participantId
- Participant ID received after enlisting participant to the transaction.heuristicType
- Type of the heuristic.Copyright © 2021 JBoss by Red Hat. All rights reserved.