Package org.geotools.caching.spatialindex

Examples of org.geotools.caching.spatialindex.NodeIdentifier.writeLock()


      Iterator<NodeIdentifier> it = queue.keySet().iterator();
      while (it.hasNext()) {
        NodeIdentifier node = it.next();
        if (!node.isLocked()) {
          try {
            node.writeLock();
            try {
              tree.evict(node);
              queue.remove(node);
            } finally {
              node.writeUnLock();
View Full Code Here


    private void acquireWriteLocks( List<NodeIdentifier> missing, List<NodeIdentifier> found )
            throws Exception {
        for( Iterator<NodeIdentifier> iterator = missing.iterator(); iterator.hasNext(); ) {
            NodeIdentifier nodeid = (NodeIdentifier) iterator.next();
            try {
                nodeid.writeLock();
            }catch (Exception ex){
                //error occurred; remove from list
                iterator.remove();
                logger.log(Level.SEVERE, "Could not acquire necessary write locks.", ex);
                continue;
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.