com.atomikos.icatch
Class CoordinatorLogEntry
java.lang.Object
com.atomikos.icatch.CoordinatorLogEntry
public class CoordinatorLogEntry
- extends Object
Coordinator snapshot for logging and recovery purposes.
id
public final String id
wasCommitted
public final boolean wasCommitted
superiorCoordinatorId
public final String superiorCoordinatorId
- Only for subtransactions, null otherwise.
participants
public final ParticipantLogEntry[] participants
CoordinatorLogEntry
public CoordinatorLogEntry(String coordinatorId,
ParticipantLogEntry[] participantDetails)
CoordinatorLogEntry
public CoordinatorLogEntry(String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants)
CoordinatorLogEntry
public CoordinatorLogEntry(String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants,
String superiorCoordinatorId)
getResultingState
public TxState getResultingState()
transitionAllowedFrom
public boolean transitionAllowedFrom(CoordinatorLogEntry existing)
presumedAborting
public CoordinatorLogEntry presumedAborting(ParticipantLogEntry entry)
throws IllegalStateException
- Throws:
IllegalStateException
expires
public long expires()
terminated
public CoordinatorLogEntry terminated(ParticipantLogEntry entry)
terminatedWithHeuristicCommit
public CoordinatorLogEntry terminatedWithHeuristicCommit(ParticipantLogEntry entry)
terminatedWithHeuristicMixed
public CoordinatorLogEntry terminatedWithHeuristicMixed(ParticipantLogEntry entry)
terminatedWithHeuristicRollback
public CoordinatorLogEntry terminatedWithHeuristicRollback(ParticipantLogEntry entry)
shouldSync
public boolean shouldSync()
markAsTerminated
public CoordinatorLogEntry markAsTerminated()
hasExpired
public boolean hasExpired()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2016. All Rights Reserved.