Interface XARecoveryResource

All Known Implementing Classes:
XARecoveryResourceImple, XARecoveryResourceImple

public interface XARecoveryResource
  • Field Details

    • RECOVERED_OK

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

      static final int FAILED_TO_RECOVER
      See Also:
    • WAITING_FOR_RECOVERY

      static final int WAITING_FOR_RECOVERY
      See Also:
    • TRANSACTION_NOT_PREPARED

      static final int TRANSACTION_NOT_PREPARED
      See Also:
    • 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:
    • INFLIGHT_TRANSACTION

      static final int INFLIGHT_TRANSACTION
      See Also:
    • RECOVERY_REQUIRED

      static final int RECOVERY_REQUIRED
      See Also:
  • Method Details

    • 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.