Package com.arjuna.ats.jta.recovery
Interface XARecoveryResource
-
public interface XARecoveryResource
-
-
Field Summary
Fields Modifier and Type Field Description static intFAILED_TO_RECOVERstatic intINCOMPLETE_STATEResponses to whether or not the instance is recoverable.static intINFLIGHT_TRANSACTIONstatic intRECOVERED_OKResults of performing recovery.static intRECOVERY_REQUIREDstatic intTRANSACTION_NOT_PREPAREDstatic intWAITING_FOR_RECOVERY
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Uidget_uid()XidgetXid()intrecover()Attempt the recovery.intrecoverable()If we don't have an XAResource then we cannot recover at this stage.Stringtype()
-
-
-
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
-
FAILED_TO_RECOVER
static final int FAILED_TO_RECOVER
- See Also:
- Constant Field Values
-
WAITING_FOR_RECOVERY
static final int WAITING_FOR_RECOVERY
- See Also:
- Constant Field Values
-
TRANSACTION_NOT_PREPARED
static final int TRANSACTION_NOT_PREPARED
- 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
-
INFLIGHT_TRANSACTION
static final int INFLIGHT_TRANSACTION
- See Also:
- Constant Field Values
-
RECOVERY_REQUIRED
static final int RECOVERY_REQUIRED
- 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.
-
-