public class CoordinatorLogEntry
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
java.lang.String |
id |
ParticipantLogEntry[] |
participants |
java.lang.String |
superiorCoordinatorId
Only for subtransactions, null otherwise.
|
boolean |
wasCommitted |
| Constructor and Description |
|---|
CoordinatorLogEntry(java.lang.String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants) |
CoordinatorLogEntry(java.lang.String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants,
java.lang.String superiorCoordinatorId) |
CoordinatorLogEntry(java.lang.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) |
java.lang.String |
toString() |
boolean |
transitionAllowedFrom(CoordinatorLogEntry existing) |
public final java.lang.String id
public final boolean wasCommitted
public final java.lang.String superiorCoordinatorId
public final ParticipantLogEntry[] participants
public CoordinatorLogEntry(java.lang.String coordinatorId,
ParticipantLogEntry[] participantDetails)
public CoordinatorLogEntry(java.lang.String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants)
public CoordinatorLogEntry(java.lang.String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants,
java.lang.String superiorCoordinatorId)
public TxState getResultingState()
public boolean transitionAllowedFrom(CoordinatorLogEntry existing)
public CoordinatorLogEntry presumedAborting(ParticipantLogEntry entry) throws java.lang.IllegalStateException
java.lang.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()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018. All Rights Reserved.