Interface ResourceRecoveryManager
-
- All Known Implementing Classes:
ResourceRecoveryManagerImpl
@Contract public interface ResourceRecoveryManager
ResourceRecoveryManager interface to be implemented by the resource manager that supports XA recovery.- Author:
- Marina Vatkina
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
recoverIncompleteTx(boolean delegated, String logPath)
recover incomplete transactionsboolean
recoverIncompleteTx(boolean delegated, String logPath, String instance, boolean notifyRecoveryListeners)
recover incomplete transactions with before and after event notificationsvoid
recoverXAResources()
to recover xa resourcesvoid
recoverXAResources(boolean force)
recover the xa-resourcesvoid
setLazyRecovery(boolean lazy)
to enable lazy recovery, setting lazy to "true" will
-
-
-
Method Detail
-
recoverIncompleteTx
boolean recoverIncompleteTx(boolean delegated, String logPath) throws Exception
recover incomplete transactions- Parameters:
delegated
- indicates whether delegated recovery is neededlogPath
- transaction log directory path- Returns:
- boolean indicating the status of transaction recovery
- Throws:
Exception
- when unable to recover
-
recoverIncompleteTx
boolean recoverIncompleteTx(boolean delegated, String logPath, String instance, boolean notifyRecoveryListeners) throws Exception
recover incomplete transactions with before and after event notifications- Parameters:
delegated
- indicates whether delegated recovery is neededlogPath
- transaction log directory pathinstance
- the name opf the instance for which delegated recovery is requested, null if unknownnotifyRecoveryListeners
- specifies whether recovery listeners are to be notified- Returns:
- boolean indicating the status of transaction recovery
- Throws:
Exception
- when unable to recover
-
recoverXAResources
void recoverXAResources(boolean force)
recover the xa-resources- Parameters:
force
- boolean to indicate if it has to be forced.
-
recoverXAResources
void recoverXAResources()
to recover xa resources
-
setLazyRecovery
void setLazyRecovery(boolean lazy)
to enable lazy recovery, setting lazy to "true" will- Parameters:
lazy
- boolean
-
-