Interface XAResourceRecovery

All Known Implementing Classes:
BasicXARecovery, JDBCXARecovery

public interface XAResourceRecovery
To 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

    Modifier and Type
    Method
    Description
    Get a resource to use for recovery purposes.
    boolean
    Iterate through all of the resources this instance provides access to.
    boolean
    Initialise with all properties required to create the resource(s).
  • Method Details

    • getXAResource

      XAResource getXAResource() throws SQLException
      Get a resource to use for recovery purposes.
      Returns:
      a new XAResource.
      Throws:
      SQLException
    • initialise

      boolean initialise(String p) throws SQLException
      Initialise with all properties required to create the resource(s).
      Parameters:
      p - An arbitrary string from which initialization data is obtained.
      Returns:
      true if initialization happened successfully, false otherwise.
      Throws:
      SQLException
    • hasMoreResources

      boolean hasMoreResources()
      Iterate through all of the resources this instance provides access to.
      Returns:
      true if this instance can provide more resources, false otherwise.