/** * Lock the TransactionLocal using the provided transaction<p> * * WARN: The current implemention just "locks the transactions" * * @param transaction the transaction * @throws IllegalStateException if the transaction is not active * @throws InterruptedException if the thread is interrupted */ public void lock(Transaction transaction) throws InterruptedException { // ignore when there is no transaction if (transaction == null) return; delegate.lock(this, transaction); }
/** * Lock the TransactionLocal using the provided transaction<p> * * WARN: The current implemention just "locks the transactions" * * @param transaction the transaction * @throws IllegalStateException if the transaction is not active * @throws InterruptedException if the thread is interrupted */ public void lock(Transaction transaction) throws InterruptedException { // ignore when there is no transaction if (transaction == null) return; delegate.lock(this, transaction); }