Examples of acquire()


Examples of org.apache.qpid.server.queue.QueueEntry.acquire()

                if(message != null)
                {
                    final QueueEntry entry = queue.getMessageOnTheQueue(messageId);

                    entry.acquire();

                    branch.dequeue(queue, message);

                    branch.addPostTransactionAcion(new ServerTransaction.Action()
                    {
View Full Code Here

Examples of org.apache.ws.util.lock.Lock.acquire()

        Resource resource = null;
        Lock lock = getLock( key );
        try
        {
            lock.acquire();
        }
        catch ( InterruptedException ie )
        {
            throw new ResourceException( ie );
        }
View Full Code Here

Examples of org.eclipse.aether.SyncContext.acquire()

            {
                SyncContext syncContext = syncContextFactory.newInstance( session, true );

                try
                {
                    syncContext.acquire( null, Collections.singleton( metadata ) );

                    if ( metadata.getFile() != null && metadata.getFile().exists() )
                    {
                        fis = new FileInputStream( metadata.getFile() );
                        org.apache.maven.artifact.repository.metadata.Metadata m =
View Full Code Here

Examples of org.eclipse.core.runtime.jobs.ILock.acquire()

       * @see org.eclipse.core.runtime.jobs.Job#run(org.eclipse.core.runtime.IProgressMonitor)
       */
      @Override
      protected IStatus run(IProgressMonitor monitor) {
        try {
          lock.acquire();
          //                return ModelFactory.computeBottomUpDependenciesModel(modelRef, monitor);
          return ModelFactory.computeModel(modelRef, dependenciesProvider, monitor);
        } finally {
          lock.release();
        }
View Full Code Here

Examples of org.eclipse.jetty.io.ByteBufferPool.acquire()

    public void receive()
    {
        HttpClient client = getHttpDestination().getHttpClient();
        ByteBufferPool bufferPool = client.getByteBufferPool();
        buffer = bufferPool.acquire(client.getResponseBufferSize(), true);
        process();
    }

    private void process()
    {
View Full Code Here

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

                    manager = new ConcurrencyManager();
                    getLocks().put(sequenceName, manager);
                }
            }
        }
        manager.acquire();
    }
   
    /**
     * Release a lock for the sequence name.
     */
 
View Full Code Here

Examples of org.exist.storage.lock.Lock.acquire()

        Lock dlock;
        for (int idx = 0; idx < documentCount; idx++) {
            d = nodes[documentOffsets[idx]].getDocument();
            dlock = d.getUpdateLock();
            if (exclusive)
                {dlock.acquire(Lock.WRITE_LOCK);}
            else
                {dlock.acquire(Lock.READ_LOCK);}
        }
    }
View Full Code Here

Examples of org.exoplatform.services.jcr.impl.util.io.SpoolFile.acquire()

         int read = 0;

         try
         {
            SpoolFile sf = SpoolFile.createTempFile("jcrvd", null, tempDirectory);
            sf.acquire(this);
            sfout = PrivilegedFileHelper.fileOutputStream(sf);

            while ((read = tmpStream.read(tmpBuff)) >= 0)
               sfout.write(tmpBuff, 0, read);
View Full Code Here

Examples of org.jboss.as.naming.service.BinderService.acquire()

                    bindingConfiguration.getSource().getResourceValue(resolutionContext, serviceBuilder, phaseContext, service.getManagedObjectInjector());
                    serviceBuilder.addDependency(bindInfo.getParentContextServiceName(), ServiceBasedNamingStore.class, service.getNamingStoreInjector());
                    serviceBuilder.addListener(serviceVerificationHandler);
                    controller = serviceBuilder.install();

                    service.acquire();
                } catch (DuplicateServiceException e) {
                    controller = (ServiceController<ManagedReferenceFactory>) CurrentServiceContainer.getServiceContainer().getService(bindInfo.getBinderServiceName());
                    if (controller == null)
                        throw e;
View Full Code Here

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

          final List exceptions = new ArrayList();
          final List timeouts = new ArrayList();


          // get a hold of the WL first
          root.acquire(Thread.currentThread(), 10, DataNode.LOCK_TYPE_WRITE);

          Thread[] t = new Thread[threads];

          for (int i=0; i<t.length; 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.