Package com.arjuna.ats.jta.recovery
Interface XAResourceRecovery
-
public interface XAResourceRecoveryTo perform recovery on arbitrary XAResources we may need to obtain new instances. Users can provide implementations of this interface which we will use at recovery time to re-create XAResources and from them perform recovery.- Since:
- JTS 3.3.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description javax.transaction.xa.XAResourcegetXAResource()Get a resource to use for recovery purposes.booleanhasMoreResources()Iterate through all of the resources this instance provides access to.booleaninitialise(java.lang.String p)Initialise with all properties required to create the resource(s).
-
-
-
Method Detail
-
getXAResource
javax.transaction.xa.XAResource getXAResource() throws java.sql.SQLExceptionGet a resource to use for recovery purposes.- Returns:
- a new XAResource.
- Throws:
java.sql.SQLException
-
initialise
boolean initialise(java.lang.String p) throws java.sql.SQLExceptionInitialise with all properties required to create the resource(s).- Parameters:
p- An arbitrary string from which initialization data is obtained.- Returns:
trueif initialization happened successfully,falseotherwise.- Throws:
java.sql.SQLException
-
hasMoreResources
boolean hasMoreResources()
Iterate through all of the resources this instance provides access to.- Returns:
trueif this instance can provide more resources,falseotherwise.
-
-