public interface RecoveryLog
| Modifier and Type | Method and Description |
|---|---|
void |
closed() |
void |
closing()
Notification of JVM shutdown - allows another instance to take over.
|
void |
forget(java.lang.String coordinatorId) |
void |
forgetTransactionRecords(java.util.Collection<PendingTransactionRecord> coordinators) |
PendingTransactionRecord |
get(java.lang.String coordinatorId) |
java.util.Collection<PendingTransactionRecord> |
getExpiredPendingCommittingTransactionRecordsAt(long time) |
java.util.Collection<PendingTransactionRecord> |
getIndoubtTransactionRecords() |
java.util.Collection<PendingTransactionRecord> |
getPendingTransactionRecords() |
boolean |
isActive() |
void |
recordAsCommitting(java.lang.String coordinatorId)
Mark the given transaction as committing.
|
boolean isActive()
void closing()
java.util.Collection<PendingTransactionRecord> getIndoubtTransactionRecords() throws LogReadException
LogReadExceptionjava.util.Collection<PendingTransactionRecord> getExpiredPendingCommittingTransactionRecordsAt(long time) throws LogReadException
LogReadExceptionvoid forgetTransactionRecords(java.util.Collection<PendingTransactionRecord> coordinators)
void recordAsCommitting(java.lang.String coordinatorId)
throws LogException
coordinatorId - The transaction, previously logged as IN_DOUBT.
For retries, the IN_DOUBT may no longer exist.LogExceptionvoid forget(java.lang.String coordinatorId)
PendingTransactionRecord get(java.lang.String coordinatorId) throws LogReadException
LogReadExceptionjava.util.Collection<PendingTransactionRecord> getPendingTransactionRecords() throws LogReadException
LogReadExceptionvoid closed()
Copyright © 2019. All Rights Reserved.