Examples of unlock()


Examples of java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock.unlock()

         
          logger.warn("success load data to jobTrunk.");
        }
        finally
        {
          writeLock.unlock();
        }
      }
      else
      {
        logger.error("loadData error, can't get writeLock! ");
View Full Code Here

Examples of javax.jcr.Node.unlock()

            if ( createdNodes != null && createdNodes.size() > 0 ) {
                bcNode.setProperty(PROPERTY_UNINSTALL_PATHS, createdNodes.toArray(new String[createdNodes.size()]));
            }
            bcNode.save();
        }
        bcNode.unlock();
    }

    public void contentIsUninstalled(final Session session,
                                     final Bundle  bundle) {
        final String nodeName = bundle.getSymbolicName();
View Full Code Here

Examples of javax.jcr.lock.LockManager.unlock()

            AccessDeniedException, InvalidItemStateException,
            RepositoryException {
        // check state of this instance
        sanityCheck();
        LockManager lockMgr = session.getWorkspace().getLockManager();
        lockMgr.unlock(getPath());
    }

    /**
     * {@inheritDoc}
     */
 
View Full Code Here

Examples of nallar.tickthreading.util.concurrent.SimpleMutex.unlock()

                if (zMinusLock == null || zMinusLock.tryLock()) {
                  try {
                    return super.run();
                  } finally {
                    if (zMinusLock != null) {
                      zMinusLock.unlock();
                    }
                  }
                }
              } finally {
                if (zPlusLock != null) {
View Full Code Here

Examples of net.mcft.copy.betterstorage.api.lock.IKey.unlock()

   
    ItemStack[] items = StackUtils.getStackContents(keyring, 9);
    for (ItemStack key : items) {
      if (key == null) continue;
      IKey keyType = (IKey)key.getItem();
      if (keyType.unlock(key, lock, false))
        return true;
    }
   
    return false;
   
View Full Code Here

Examples of net.sf.ehcache.concurrent.Sync.unlock()

        }
        if (writeLocked) {
            try {
                removeInternal(key, true, notifyListeners, false, false);
            } finally {
                syncForKey.unlock(LockType.WRITE);
            }
        } else {
            if (LOG.isDebugEnabled()) {
                LOG.debug(configuration.getName() + " cache: element " + key + " expired, but couldn't be inline evicted");
            }
View Full Code Here

Examples of net.sf.ehcache.transaction.SoftLock.unlock()

        if (oldElement == null) {
            Element previousElement = store.putIfAbsent(softLockedElement);
            if (previousElement != null) {
                softLock.unfreeze();
                softLock.unlock();
                softLockedElement = null;
                throw new OptimisticLockFailureException();
            }
        } else {
            boolean replaced = store.replace(oldElement, softLockedElement, comparator);
View Full Code Here

Examples of net.sourceforge.pebble.service.StaticPageService.unlock()

    String id = request.getParameter("page");
    if (id != null) {
      try {
        StaticPage staticPage = service.getStaticPageById(blog, id);
        if (staticPage != null) {
          service.unlock(staticPage);
          blog.info("Static page <a href=\"" + staticPage.getLocalPermalink() + "\">" + staticPage.getTitle() + "</a> unlocked.");
        }
      } catch (StaticPageServiceException e) {
        blog.warn(e.getClass().getName() + " Error while unlocking static page - " + StringUtils.transformHTML(e.getMessage()));
        log.warn("Error while unlocking static page", e);
View Full Code Here

Examples of net.timewalker.ffmq3.storage.message.MessageStore.unlock()

      AbstractMessage message;
      synchronized (storeLock)
        {
        int handle = lockRef.getHandle();
        message = targetStore.retrieve(handle);
        targetStore.unlock(handle);
        }
     
      messageAvailable(message);
    }
   
View Full Code Here

Examples of nexj.core.rpc.file.ra.LockableFile.unlock()

      }
      finally
      {
         if (directFile != null)
         {
            directFile.unlock();
            directFile.close();
         }
      }
   }
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.