public class CoordinatorLogEntry extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
String |
id |
ParticipantLogEntry[] |
participants |
String |
superiorCoordinatorId
Only for subtransactions, null otherwise.
|
boolean |
wasCommitted |
| Constructor and Description |
|---|
CoordinatorLogEntry(String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants) |
CoordinatorLogEntry(String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants,
String superiorCoordinatorId) |
CoordinatorLogEntry(String coordinatorId,
ParticipantLogEntry[] participantDetails) |
| Modifier and Type | Method and Description |
|---|---|
long |
expires() |
TxState |
getResultingState() |
boolean |
hasExpired() |
CoordinatorLogEntry |
markAsTerminated() |
CoordinatorLogEntry |
presumedAborting(ParticipantLogEntry entry) |
boolean |
shouldSync() |
CoordinatorLogEntry |
terminated(ParticipantLogEntry entry) |
CoordinatorLogEntry |
terminatedWithHeuristicCommit(ParticipantLogEntry entry) |
CoordinatorLogEntry |
terminatedWithHeuristicMixed(ParticipantLogEntry entry) |
CoordinatorLogEntry |
terminatedWithHeuristicRollback(ParticipantLogEntry entry) |
String |
toString() |
boolean |
transitionAllowedFrom(CoordinatorLogEntry existing) |
public final String id
public final boolean wasCommitted
public final String superiorCoordinatorId
public final ParticipantLogEntry[] participants
public CoordinatorLogEntry(String coordinatorId, ParticipantLogEntry[] participantDetails)
public CoordinatorLogEntry(String coordinatorId, boolean wasCommitted, ParticipantLogEntry[] participants)
public CoordinatorLogEntry(String coordinatorId, boolean wasCommitted, ParticipantLogEntry[] participants, String superiorCoordinatorId)
public TxState getResultingState()
public boolean transitionAllowedFrom(CoordinatorLogEntry existing)
public CoordinatorLogEntry presumedAborting(ParticipantLogEntry entry) throws IllegalStateException
IllegalStateExceptionpublic long expires()
public CoordinatorLogEntry terminated(ParticipantLogEntry entry)
public CoordinatorLogEntry terminatedWithHeuristicCommit(ParticipantLogEntry entry)
public CoordinatorLogEntry terminatedWithHeuristicMixed(ParticipantLogEntry entry)
public CoordinatorLogEntry terminatedWithHeuristicRollback(ParticipantLogEntry entry)
public boolean shouldSync()
public CoordinatorLogEntry markAsTerminated()
public boolean hasExpired()
Copyright © 2016. All Rights Reserved.