Examples of acquireAll()


Examples of org.jboss.cache.DataNode.acquireAll()

      cache.put("/1/2/3", null);

      root=cache.getRoot();


      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_READ);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
View Full Code Here

Examples of org.jboss.cache.DataNode.acquireAll()

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_READ);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());
   }
View Full Code Here

Examples of org.jboss.cache.DataNode.acquireAll()

      cache2.put("/1/2/3", null);

      cache=createCache(TreeCache.REPL_ASYNC, IsolationLevel.SERIALIZABLE);
      root=cache.getRoot();

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_READ);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
View Full Code Here

Examples of org.jboss.cache.DataNode.acquireAll()

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_READ);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());

      root.acquireAll(owner, 2000, DataNode.LOCK_TYPE_WRITE);
      root.releaseAll(owner);

      assertEquals(0, cache.getNumberOfLocksHeld());
   }
View Full Code Here

Examples of org.jboss.cache.DataNode.acquireAll()

//         }

         if (recursive && isTargetNode(i, treeNodeSize))
         {
            {
               Set acquired_locks = child_node.acquireAll(owner, lock_timeout, lock_type);
               if (acquired_locks.size() > 0)
               {
                  if (gtx != null)
                  {
                     cache.getTransactionTable().addLocks(gtx, acquired_locks);
View Full Code Here

Examples of org.jboss.cache.DataNode.acquireAll()

//         }

         if (recursive && isTargetNode(i, treeNodeSize))
         {
            {
               Set acquired_locks = child_node.acquireAll(owner, lock_timeout, lock_type);
               if (acquired_locks.size() > 0)
               {
                  if (gtx != null)
                  {
                     cache.getTransactionTable().addLocks(gtx, acquired_locks);
View Full Code Here

Examples of org.jboss.cache.DataNode.acquireAll()

//         }

         if (recursive && isTargetNode(i, treeNodeSize))
         {
            {
               Set acquired_locks = child_node.acquireAll(owner, lock_timeout, lock_type);
               if (acquired_locks.size() > 0)
               {
                  if (gtx != null)
                  {
                     cache.getTransactionTable().addLocks(gtx, acquired_locks);
View Full Code Here

Examples of org.jboss.cache.lock.NodeLock.acquireAll()

            {
               // Acquire locks

               Object owner = getOwnerForLock();
               subtreeLock = subtreeRoot.getLock();
               subtreeLock.acquireAll(owner, stateFetchTimeout, NodeLock.LockType.WRITE);
               subtreeLocked = true;

               // Lock the parent, as we're about to write to it
               parent = subtreeRoot.getParent();
               if (parent != null)
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.