Package org.geotools.caching.spatialindex

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


      }
      try {
        for (Iterator<NodeIdentifier> iterator = readlocks.iterator(); iterator.hasNext();) {
          NodeIdentifier type = (NodeIdentifier) iterator.next();
          try{
              type.readUnLock();
          }catch (Exception ex){
          //    logger.log(Level.SEVERE, "Could not release read lock.", ex);
          }
        }
      } catch (Exception ex) {
View Full Code Here


          cacheFeatureReader = new GridCacheFeatureReader(found, (GridSpatialIndex)grid.getIndex());
      }else{
          //need a write lock; release all read locks
          for( Iterator<NodeIdentifier> iterator = found.iterator(); iterator.hasNext(); ) {
                    NodeIdentifier nodeid = (NodeIdentifier) iterator.next();
                    nodeid.readUnLock();
          }
          this.grid.readUnLock();
          this.grid.writeLock();
          try{
              //re-get read locks
View Full Code Here

              }
          }
          if (found != null){
              for( Iterator<NodeIdentifier> iterator = found.iterator(); iterator.hasNext(); ) {
                    NodeIdentifier nodeid = (NodeIdentifier) iterator.next();
                    nodeid.readUnLock();
                }
          }
        if (missing != null){
            this.grid.unregister(missing);
        }
View Full Code Here

                iterator.remove();
                continue;
            }
            if (!nodeid.isValid()) {
                // this node is no longer valid add to missing list
                nodeid.readUnLock();
                missing.add(nodeid);
                iterator.remove();
            }
        }
    }
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.