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

## javax.resource.spi
Interface XATerminator

public interface XATerminator

Transaction completion and crash recovery

Method Summary
`void` | `commit(Xid xid, boolean onePhase)` Commit the transaction
`void` | `forget(Xid xid)` Forget the transaction
`int` | `prepare(Xid xid)` Prepare the transaction
`Xid[]` | `recover(int flag)` Retrieve xids that are recoverable
`void` | `rollback(Xid xid)` Rollback the transaction

Method Detail

### commit

    public void commit(Xid xid,
                       boolean onePhase)
                throws XAException

  Commit the transaction

  Parameters:
    `xid` - the xid
    `onePhase` - true for one phase commit, false for two phase
  Throws:
    `XAException` - for an error

### forget

    public void forget(Xid xid)
                throws XAException

  Forget the transaction

  Parameters:
    `xid` - the xid
  Throws:
    `XAException` - for an error

### prepare

    public int prepare(Xid xid)
                throws XAException

  Prepare the transaction

  Parameters:
    `xid` - the xid
  Returns:
    Either XA_RDONLY or XA_OK
  Throws:
    `XAException` - for an error

### rollback

    public void rollback(Xid xid)
                  throws XAException

  Rollback the transaction

  Parameters:
    `xid` - the xid
  Throws:
    `XAException` - for an error

### recover

    public Xid[] recover(int flag)
                  throws XAException

  Retrieve xids that are recoverable

  Parameters:
    `flag` - the recovery option
  Throws:
    `XAException` - for an error

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

Copyright © 2002 JBoss Group, LLC. All Rights Reserved.