public interface RecoverableResource
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the resource for shutdown.
|
String |
getName()
Gets the name of the resource.
|
boolean |
hasPendingParticipantsFromLastRecoveryScan() |
boolean |
isClosed()
Tests if the resource is closed.
|
boolean |
isSameRM(RecoverableResource res)
Tests if a resource is the same as another one.
|
boolean |
recover(long startOfRecoveryScan,
Collection<PendingTransactionRecord> expiredCommittingCoordinators,
Collection<PendingTransactionRecord> indoubtForeignCoordinatorsToKeep)
Instructs the resource to recover.
|
void |
setRecoveryService(RecoveryService recoveryService)
Initializes this resource with the recovery service.
|
void setRecoveryService(RecoveryService recoveryService) throws ResourceException
recoveryService - The recovery service. This instance
can be used by the resource to ask recovery from the
transaction engine.ResourceException - On errors.void close()
throws ResourceException
ResourceExceptionString getName()
boolean isSameRM(RecoverableResource res) throws ResourceException
ResourceExceptionboolean isClosed()
boolean recover(long startOfRecoveryScan,
Collection<PendingTransactionRecord> expiredCommittingCoordinators,
Collection<PendingTransactionRecord> indoubtForeignCoordinatorsToKeep)
| IN_DOUBT participant | IN_DOUBT participant expired by max_timeout | ||
|---|---|---|---|
| 1 | No PendingTransactionRecord for coordinator | Wait for COMMITTING record | Do presumed abort |
| 2 | Expired COMMITTING PendingTransactionRecord for coordinator | Replay commit | |
| 3 | Foreign IN_DOUBT PendingTransactionRecord for coordinator | Wait for remote recovery to resolve into 1 or 2 at a later invocation | |
startOfRecoveryScan - expiredCommittingCoordinators - indoubtForeignCoordinatorsToKeep - boolean hasPendingParticipantsFromLastRecoveryScan()
Copyright © 2026. All rights reserved.