Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.arjuna.ats.jta.recovery
Interface XAResourceRecovery

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
`javax.transaction.xa.XAResource` | `getXAResource()` Get a resource to use for recovery purposes.
`boolean` | `hasMoreResources()` Iterate through all of the resources this instance provides access to.
`boolean` | `initialise(java.lang.String p)` Initialise with all properties required to create the resource(s).

Method Detail

### getXAResource

    public javax.transaction.xa.XAResource getXAResource()
                                                  throws java.sql.SQLException

  Get a resource to use for recovery purposes.

  Returns:
    a new XAResource.
  Throws:
    `java.sql.SQLException`

### initialise

    public boolean initialise(java.lang.String p)
                       throws java.sql.SQLException

  Initialise with all properties required to create the resource(s).

  Returns:
    `true` if initialization happened successfully, `false` otherwise.
  Throws:
    `java.sql.SQLException`

### hasMoreResources

    public boolean hasMoreResources()

  Iterate through all of the resources this instance provides access to.

  Returns:
    `true` if this instance can provide more resources, `false` otherwise.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD