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 |
hasMoreToRecover() |
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)
startOfRecoveryScan - expiredCommittingCoordinators - indoubtForeignCoordinatorsToKeep - boolean hasMoreToRecover()
Copyright © 2022. All rights reserved.