Examples of writeLock()


Examples of org.exolab.castor.persist.LockEngine.writeLock()

                    "persist.objectDeleted", object.getClass(), oid.getIdentity()));
        }

        try {

            engine.writeLock(this, oid, timeout);
        } catch (ObjectDeletedException except) {
            // Object has been deleted outside this transaction,
            // forget about it
            _tracker.untrackObject(object);
            throw new ObjectNotPersistentException(Messages.format(
View Full Code Here

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

Examples of org.gephi.graph.api.Graph.writeLock()

       
        if (graphModel != null) {
            //Remove self loops
            int removed = 0;
            Graph graph = graphModel.getGraph();
            graph.writeLock();
            for(Edge edge : graph.getEdges().toArray()) {
                if(edge.isSelfLoop()) {
                    graph.removeEdge(edge);
                    removed++;
                }
View Full Code Here

Examples of org.impalaframework.module.spi.FrameworkLockHolder.writeLock()

       
        ModuleManagementFacade moduleManagementFacade = ImpalaServletUtils.getModuleManagementFacade(getServletContext());
        FrameworkLockHolder frameworkLockHolder = moduleManagementFacade.getFrameworkLockHolder();
       
        try {
            frameworkLockHolder.writeLock();
            WebApplicationContext wac = createWebApplicationContext();
            HttpServlet delegateServlet = this;
        
            this.invoker = getInvoker(wac, delegateServlet, frameworkLockHolder, this.setThreadContextClassLoader);
           
View Full Code Here

Examples of org.jboss.cache.lock.ReadWriteLockWithUpgrade.writeLock()

   public void testTimedWriteLocks() throws InterruptedException {
      ReadWriteLockWithUpgrade l = new ReadWriteLockWithUpgrade();
      final int NUM=1000000;

      for(int i=0; i < NUM; i++) {
         l.writeLock().attempt(2000);
         l.writeLock().release();
         if(i % 10000 == 0)
            System.out.println(i);
      }
   }
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.