/** * Release the mutual exclusion. * @see fr.dyade.aaa.util.Transaction#release() */ public synchronized void release() throws IOException { if ((phase != RUN) && (phase != COMMIT) && (phase != ROLLBACK)) throw new IllegalStateException("Can not release transaction: " + getPhaseInfo() + '.'); // Change the transaction state. setPhase(FREE); // wake-up an eventually user's thread in begin notify(); }
/** * Release the mutual exclusion. * @see fr.dyade.aaa.util.Transaction#release() */ public synchronized void release() throws IOException { if ((phase != RUN) && (phase != COMMIT) && (phase != ROLLBACK)) throw new IllegalStateException("Can not release transaction: " + getPhaseInfo() + '.'); // Change the transaction state. setPhase(FREE); // wake-up an eventually user's thread in begin notify(); } }