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

## com.atomikos.icatch
Interface CompositeTerminator

    public interface CompositeTerminator

A handle to terminate the composite transaction. Must ALWAYS be used to handle termination throughout the system, also for subtransactions!

Method Summary
`void` | `commit()` Commit the composite transaction.
`void` | `rollback()` Rollback the current transaction.

Method Detail

### commit

    void commit()
                throws HeurRollbackException,
                       HeurMixedException,
                       HeurHazardException,
                       SysException,
                       SecurityException,
                       RollbackException

  Commit the composite transaction.

  Throws:
    `HeurRollbackException` - On heuristic rollback.
    `HeurMixedException` - On heuristic mixed outcome.
    `SysException` - For unexpected failures.
    `SecurityException` - If calling thread does not have right to commit.
    `HeurHazardException` - In case of heuristic hazard.
    `RollbackException` - If the transaction was rolled back before prepare.

### rollback

    void rollback()
                  throws IllegalStateException,
                         SysException

  Rollback the current transaction.

  Throws:
    `IllegalStateException` - If prepared or inactive.
    `SysException` - If unexpected 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 © 2012. All Rights Reserved.