com.atomikos.recovery
Class CoordinatorLogEntry
java.lang.Object
com.atomikos.recovery.CoordinatorLogEntry
public class CoordinatorLogEntry
- extends java.lang.Object
Coordinator snapshot for logging and recovery purposes.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
id
public final java.lang.String id
wasCommitted
public final boolean wasCommitted
superiorCoordinatorId
public final java.lang.String superiorCoordinatorId
- Only for subtransactions, null otherwise.
participants
public final ParticipantLogEntry[] participants
CoordinatorLogEntry
public CoordinatorLogEntry(java.lang.String coordinatorId,
ParticipantLogEntry[] participantDetails)
CoordinatorLogEntry
public CoordinatorLogEntry(java.lang.String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants)
CoordinatorLogEntry
public CoordinatorLogEntry(java.lang.String coordinatorId,
boolean wasCommitted,
ParticipantLogEntry[] participants,
java.lang.String superiorCoordinatorId)
getResultingState
public TxState getResultingState()
transitionAllowedFrom
public boolean transitionAllowedFrom(CoordinatorLogEntry existing)
presumedAborting
public CoordinatorLogEntry presumedAborting(ParticipantLogEntry entry)
throws java.lang.IllegalStateException
- Throws:
java.lang.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 java.lang.String toString()
- Overrides:
toString in class java.lang.Object
Copyright © 2016. All Rights Reserved.