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 Detail

      • recoverIncompleteTx

        boolean recoverIncompleteTx​(boolean delegated,
                                    String logPath)
                             throws Exception
        recover incomplete transactions
        Parameters:
        delegated - indicates whether delegated recovery is needed
        logPath - 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 needed
        logPath - transaction log directory path
        instance - the name opf the instance for which delegated recovery is requested, null if unknown
        notifyRecoveryListeners - 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