public void exit () throws WrongStateException, UnknownTransactionException, SystemException { /* * Active -> illegal state * Canceling -> illegal state * Completed -> illegal state * Closing -> illegal state * Compensating -> illegal state * Faulting -> illegal state * Faulting-Active -> illegal state * Faulting-Compensating -> illegal state * Exiting -> no response * Ended -> ended */ final State state = coordinator.exit() ; if (state == State.STATE_EXITING) { throw new SystemException() ; } else if (state != State.STATE_ENDED) { throw new WrongStateException() ; } }
public void exit () throws WrongStateException, UnknownTransactionException, SystemException { /* * Active -> illegal state * Canceling -> illegal state * Completed -> illegal state * Closing -> illegal state * Compensating -> illegal state * Faulting -> illegal state * Faulting-Active -> illegal state * Faulting-Compensating -> illegal state * Exiting -> no response * Ended -> ended */ final State state = coordinator.exit() ; if (state == State.STATE_EXITING) { throw new SystemException() ; } else if (state != State.STATE_ENDED) { throw new WrongStateException() ; } }
public void exit () throws WrongStateException, UnknownTransactionException, SystemException { /* * Active -> illegal state * Canceling -> illegal state * Completed -> illegal state * Closing -> illegal state * Compensating -> illegal state * Faulting -> illegal state * Faulting-Active -> illegal state * Faulting-Compensating -> illegal state * Exiting -> no response * Ended -> ended */ final State state = coordinator.exit() ; if (state == State.STATE_EXITING) { throw new SystemException() ; } else if (state != State.STATE_ENDED) { throw new WrongStateException() ; } }