Package info.aduna.concurrent.locks

Examples of info.aduna.concurrent.locks.Lock.release()


      try {
        autoStartTransaction();
        clearNamespacesInternal();
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here


      CloseableIteration<BindingSet, QueryEvaluationException> iter;
      iter = strategy.evaluate(tupleExpr, bindings);
      return new LockingIteration<BindingSet, QueryEvaluationException>(stLock, iter);
    }
    catch (QueryEvaluationException e) {
      stLock.release();
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      stLock.release();
      throw e;
View Full Code Here

    catch (QueryEvaluationException e) {
      stLock.release();
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      stLock.release();
      throw e;
    }
  }

  @Override
View Full Code Here

      iter = new LockingIteration<MemResource, SailException>(stLock, iter);

      return iter;
    }
    catch (RuntimeException e) {
      stLock.release();
      throw e;
    }
  }

  @Override
View Full Code Here

      return new LockingIteration<MemStatement, SailException>(stLock, store.createStatementIterator(
          SailException.class, subj, pred, obj, !includeInferred, snapshot, readMode, contexts));
    }
    catch (RuntimeException e) {
      stLock.release();
      throw e;
    }
  }

  @Override
View Full Code Here

      finally {
        iter.close();
      }
    }
    finally {
      stLock.release();
    }
  }

  @Override
  protected CloseableIteration<? extends Namespace, SailException> getNamespacesInternal()
View Full Code Here

      try {
        autoStartTransaction();
        return addStatementInternal(subj, pred, obj, false, contexts);
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

      try {
        autoStartTransaction();
        return removeStatementsInternal(subj, pred, obj, false, contexts);
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

      try {
        autoStartTransaction();
        removeStatementsInternal(null, null, null, false, contexts);
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

      CloseableIteration<BindingSet, QueryEvaluationException> iter;
      iter = strategy.evaluate(tupleExpr, bindings);
      return new LockingIteration<BindingSet, QueryEvaluationException>(readLock, iter);
    }
    catch (QueryEvaluationException e) {
      readLock.release();
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.