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.


Copyright © 2011. All Rights Reserved.