Package info.aduna.concurrent.locks

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


      Lock txnLock = getTransactionLock();
      try {
        super.rollback();
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here


      Lock txnLock = getTransactionLock();
      try {
        super.addStatement(subj, pred, obj, contexts);
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

      Lock txnLock = getTransactionLock();
      try {
        super.removeStatements(subj, pred, obj, contexts);
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

    Lock conLock = getSharedConnectionLock();
    try {
      return super.getNamespaces();
    }
    finally {
      conLock.release();
    }
  }

  @Override
  public String getNamespace(String prefix)
View Full Code Here

    Lock conLock = getSharedConnectionLock();
    try {
      return super.getNamespace(prefix);
    }
    finally {
      conLock.release();
    }
  }

  @Override
  public void setNamespace(String prefix, String name)
View Full Code Here

      Lock txnLock = getTransactionLock();
      try {
        super.setNamespace(prefix, name);
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

      Lock txnLock = getTransactionLock();
      try {
        super.removeNamespace(prefix);
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

      Lock txnLock = getTransactionLock();
      try {
        super.clearNamespaces();
      }
      finally {
        txnLock.release();
      }
    }
    finally {
      conLock.release();
    }
View Full Code Here

      iter = strategy.evaluate(query, EmptyBindingSet.getInstance());
      iter = new LockingCursor<BindingSet>(stLock, iter);
      return iter;
    }
    catch (StoreException e) {
      stLock.release();
      throw e;
    }
    catch (RuntimeException e) {
      stLock.release();
      throw e;
View Full Code Here

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

  public Cursor<? extends Resource> getContextIDs()
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.