Examples of release()


Examples of org.eclipse.orion.server.core.resources.FileLocker.release()

    } catch (IOException e) {
      // We shouldn't get here
      handleIndexingFailure(e, null);
    } finally {
      if (lock.isValid()) {
        lock.release();
      }
    }
    long duration = System.currentTimeMillis() - start;
    if (logger.isInfoEnabled()) {
      String activity = " (" + activeUserCount + '/' + userCount + " users active)"; //$NON-NLS-1$ //$NON-NLS-2$
View Full Code Here

Examples of org.eclipse.osgi.service.datalocation.Location.release()

            if (display != null) {
        display.dispose();
      }
            Location instanceLoc = Platform.getInstanceLocation();
            if (instanceLoc != null)
              instanceLoc.release();
        }
    }

    /**
     * Creates the display used by the application.
View Full Code Here

Examples of org.eclipse.persistence.internal.helper.ConcurrencyManager.release()

    /**
     * Release a lock for the sequence name.
     */
    protected void releaseLock(String seqName) {
        ConcurrencyManager manager = getLocks().get(seqName);
        manager.release();
    }

    protected Sequence getSequence(Class cls) {
        //** should check here that sequencing is used?
        String seqName = getOwnerSession().getDescriptor(cls).getSequenceNumberName();
View Full Code Here

Examples of org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.release()

            // Clean up by releasing the uow and client session
            if (uow.shouldResumeUnitOfWorkOnTransactionCompletion() && getTransactionController().canMergeUnitOfWork_impl(status)){
                uow.synchronizeAndResume();
                uow.setSynchronized(false);
            }else{
                uow.release();
                // Release the session explicitly
                if (getSession().isClientSession() || (getSession().isSessionBroker() && ((SessionBroker)getSession()).isClientSessionBroker())) {
                    getSession().release();
                }
            }
View Full Code Here

Examples of org.eclipse.wst.sse.core.internal.provisional.INodeAdapterFactory.release()

      synchronized (adaptOnCreateFactories) {
        int length = adaptOnCreateFactories.size();
        for (int i = 0; i < length; i++) {
          INodeAdapterFactory factory = (INodeAdapterFactory) adaptOnCreateFactories.get(i);
          factory.release();
        }
      }

    }
  }
View Full Code Here

Examples of org.eclipse.wst.xml.core.internal.document.DocumentTypeAdapter.release()

    if(!fDoc2AdapterMap.isEmpty()) {
      Object[] docs = fDoc2AdapterMap.keySet().toArray();
      DocumentTypeAdapter adapter = null;
      for (int i = 0; i < docs.length; i++) {
        adapter = (DocumentTypeAdapter)fDoc2AdapterMap.get(docs[i]);
        adapter.release();
        ((IDOMDocument)docs[i]).removeAdapter(adapter);
      }
      fDoc2AdapterMap.clear();
    }
   
View Full Code Here

Examples of org.elasticsearch.index.deletionpolicy.SnapshotIndexCommit.release()

        rwl.readLock().lock();
        try {
            snapshotIndexCommit = deletionPolicy.snapshot();
            traslogSnapshot = translog.snapshot();
        } catch (Exception e) {
            if (snapshotIndexCommit != null) snapshotIndexCommit.release();
            throw new SnapshotFailedEngineException(shardId, e);
        } finally {
            rwl.readLock().unlock();
        }
View Full Code Here

Examples of org.elasticsearch.search.internal.SearchContext.release()

            if (request.scroll() != null && request.scroll().keepAlive() != null) {
                keepAlive = request.scroll().keepAlive().millis();
            }
            context.keepAlive(keepAlive);
        } catch (RuntimeException e) {
            context.release();
            throw e;
        }

        return context;
    }
View Full Code Here

Examples of org.exist.Database.release()

            if (transact != null)
                transact.abort(transaction);
            e.printStackTrace();
            fail(e.getMessage());
        } finally {
            pool.release(broker);
        }
    }

}
View Full Code Here

Examples of org.exist.collections.Collection.release()

            transact.abort(txn);
            throw new RemoteException(e.getMessage(), e);
        } finally {
            transact.close(txn);
            if(collection != null)
                {collection.release(Lock.WRITE_LOCK);}
            pool.release(broker);
        }
//        documentCache.clear();
//        return doc != 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.