Package info.aduna.concurrent.locks

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


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

  protected void replaceValues(TupleExpr tupleExpr)
View Full Code Here


          }
        }
      };
    }
    catch (IOException e) {
      readLock.release();
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
View Full Code Here

    catch (IOException e) {
      readLock.release();
      throw new SailException(e);
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
    }
  }

  @Override
View Full Code Here

          }
        }
      };
    }
    catch (IOException e) {
      readLock.release();
      throw new SailException("Unable to get statements", e);
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
View Full Code Here

    catch (IOException e) {
      readLock.release();
      throw new SailException("Unable to get statements", e);
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
    }
  }

  @Override
View Full Code Here

    }
    catch (IOException e) {
      throw new SailException(e);
    }
    finally {
      readLock.release();
    }
  }

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

      return new LockingIteration<NamespaceImpl, SailException>(
          readLock,
          new IteratorIteration<NamespaceImpl, SailException>(nativeStore.getNamespaceStore().iterator()));
    }
    catch (RuntimeException e) {
      readLock.release();
      throw e;
    }
  }

  @Override
View Full Code Here

    Lock readLock = nativeStore.getReadLock();
    try {
      return nativeStore.getNamespaceStore().getNamespace(prefix);
    }
    finally {
      readLock.release();
    }
  }

  @Override
  protected void startTransactionInternal()
View Full Code Here

    }
    catch (IOException e) {
      throw new SailException(e);
    }
    finally {
      storeReadLock.release();
    }

    nativeStore.notifySailChanged(sailChangedEvent);

    // create a fresh event object.
View Full Code Here

    catch (IOException e) {
      throw new SailException(e);
    }
    finally {
      txnLock.release();
      storeReadLock.release();
    }
  }

  @Override
  protected void addStatementInternal(Resource subj, URI pred, Value obj, Resource... contexts)
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.