Examples of lock()


Examples of mil.nga.giat.geowave.vector.plugin.lock.LockingManagement.lock()

      throws InterruptedException,
      IOException {
    final LockingManagement memoryLockManager = new MemoryLockManager(
        "default");
    final DefaultTransaction t1 = new DefaultTransaction();
    memoryLockManager.lock(
        t1,
        "f1");
    final DefaultTransaction t2 = new DefaultTransaction();

    Thread commiter = new Thread(
View Full Code Here

Examples of mil.nga.giat.geowave.vector.plugin.lock.MemoryLockManager.lock()

      throws InterruptedException,
      IOException {
    final LockingManagement memoryLockManager = new MemoryLockManager(
        "default");
    final DefaultTransaction t1 = new DefaultTransaction();
    memoryLockManager.lock(
        t1,
        "f1");
    memoryLockManager.lock(
        t1,
        "f1");
View Full Code Here

Examples of net.east301.keyring.util.FileBasedLock.lock()

        FileBasedLock fileLock = new FileBasedLock(getLockPath());

        try {
            //
            fileLock.lock();

            //
            PasswordEntry targetEntry = null;

            for (PasswordEntry entry : loadPasswordEntries()) {
View Full Code Here

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

        return lockProvider.getSyncForKey(key);
    }

    private void acquireLockOnKey(Object key, LockType lockType) {
        Sync s = getLockForKey(key);
        s.lock(lockType);
    }

    private void releaseLockOnKey(Object key, LockType lockType) {
        Sync s = getLockForKey(key);
        s.unlock(lockType);
View Full Code Here

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

                           ElementValueComparator comparator) {
        Object objectKey = getObjectKey();

        SoftLock softLock = softLockFactory.createSoftLock(transactionId, objectKey, newElement, oldElement);
        softLockedElement = createElement(objectKey, softLock);
        softLock.lock();
        softLock.freeze();

        if (oldElement == null) {
            Element previousElement = store.putIfAbsent(softLockedElement);
            if (previousElement != null) {
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.EnumerationOption.lock()

  static Object EXPORT_JOB_FAMILY = new String("Export job family");

  public ExporterBase() {
        final Stylesheet[] stylesheets = getStylesheets();
        EnumerationOption stylesheetOption= createStylesheetOption(getStylesheetOptionID(), stylesheets);
        stylesheetOption.lock();
        stylesheetOption.setValue(stylesheets[0].getLocalizedName());
        stylesheetOption.commit();
        myOptions = new GPOptionGroup("exporter.html", new GPOption[] {stylesheetOption});
        myOptions.setTitled(false);
  }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOption.lock()

            int r = 0, g = 0, b = 0;

            if ("option".equals(qName)) {
                GPOption option = (GPOption) myGPOptions.get(attrs.getValue("id"));
                if (option!=null) {
                    option.lock();
                    option.loadPersistentValue(attrs.getValue("value"));
                    option.commit();
                }
                return;
            }
View Full Code Here

Examples of net.sourceforge.ganttproject.gui.options.model.GPOptionGroup.lock()

                    ExporterChooserPage.this.myState.setExporter(nextExporter);
                }
            };
            GPOptionGroup nextOptions = nextExporter.getOptions();
            if (nextOptions!=null) {
                nextOptions.lock();
            }
            choiceChangeActions[i] = nextAction;
            choiceOptions[i] = nextOptions;
        }
        GPOptionChoicePanel choicePanel = new GPOptionChoicePanel();
View Full Code Here

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

    if (staticPage == null) {
      return new NotFoundView();
    } else {
      getModel().put(Constants.STATIC_PAGE_KEY, staticPage);
      if (service.lock(staticPage)) {
        return new StaticPageFormView();
      } else {
        return new StaticPageLockedView();
      }
    }
View Full Code Here

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

                throw new DataStoreFullException("Cannot store message : queue is full : "+getName());
            }
           
            if (locks != null)
          {
              targetStore.lock(newHandle);
              locks.add(newHandle, targetStore.getDeliveryMode(), this);
          }
        }
        sentToQueueCount++;
       
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.