Interface XARecoveryResource


  • public interface XARecoveryResource
    • Field Detail

      • RECOVERED_OK

        static final int RECOVERED_OK
        Results of performing recovery. Remember to update com.arjuna.ats.jta.utils.XARecoveryResourceHelper
        See Also:
        Constant Field Values
      • INCOMPLETE_STATE

        static final int INCOMPLETE_STATE
        Responses to whether or not the instance is recoverable. Remember to update com.arjuna.ats.jta.utils.XARecoveryResourceHelper
        See Also:
        Constant Field Values
    • Method Detail

      • recoverable

        int recoverable()
        If we don't have an XAResource then we cannot recover at this stage. The XAResource will have to be provided for us and then we can retry. Because recovery happens periodically, it is possible that it takes a snapshot of a transaction that is still running and will vanish from the log anyway. If that happens, then we don't need to (and can't) run recovery on it.
      • recover

        int recover()
        Attempt the recovery. Return one of the status values above.
      • getXid

        Xid getXid()
        Returns:
        the Xid that was used to manipulate this state.
      • get_uid

        Uid get_uid()
        Returns:
        the Uid for this instance.
      • type

        String type()
        Returns:
        the type for this instance.