Package com.arjuna.ats.jta.recovery
Interface XAResourceOrphanFilter
-
public interface XAResourceOrphanFilterInterface used by the XARecoveryModule to allow plugins to vote in the handling of in-doubt Xids.- Author:
- Jonathan Halliday (jonathan.halliday@redhat.com), 2010-03
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classXAResourceOrphanFilter.Vote
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description XAResourceOrphanFilter.VotecheckXid(javax.transaction.xa.Xid xid)Called by the XARecoveryModule for each in-doubt Xid.
-
-
-
Method Detail
-
checkXid
XAResourceOrphanFilter.Vote checkXid(javax.transaction.xa.Xid xid)
Called by the XARecoveryModule for each in-doubt Xid. Implementations should return Vote.ROLLBACK if they recognize the xid and believe it should be aborted. Vote.LEAVE_ALONE if they recognize the xid and do not want the XARecovery module to roll it back. Vote.ABSTAIN if they do not recognize the xid. Each registered XAResourceOrphanFilter will be consulted before any rollback on each recovery pass, so they may change their mind over time e.g. if new information becomes available due to other recovery activity.- Parameters:
xid- The in-doubt xid.- Returns:
- a Vote in accordance with the guidelines above.
-
-