Examples of release()


Examples of org.menagerie.latches.spi.ZkSemaphore.release()

        semaphore.acquire();

        //check that the available permits are zero
        assertEquals("semaphore does not report fewer permits!",numPermits-1,semaphore.availablePermits());
        semaphore.release();
        assertEquals("semaphore does not report releasing a permit!",numPermits,semaphore.availablePermits());
    }

    @Test(timeout = 1000l)
    public void testTwoThreadsCanAccessSempahore() throws Exception{
View Full Code Here

Examples of org.mobicents.mscontrol.MsConnection.release()

    String sdp = msConnection.getLocalDescriptor();

    ServerTransaction txn = getServerTransaction();
    if (txn == null) {
      log.error("SIP activity lost, close RTP connection");
      msConnection.release();
      return;
    }

    Request request = txn.getRequest();
View Full Code Here

Examples of org.mobicents.mscontrol.MsLink.release()

        logger.info("Index= " + getIndex() + " keepAlive = " + this.getKeepAlive());

        if (this.getIndex() == this.getSequence().size() && !this.getKeepAlive()) {
            logger.info("Releasing link");
            MsLink link = this.getLink();
            link.release();
        } else {
            logger.info("Replay");
            this.setIndex(0);
            playNext();
        }
View Full Code Here

Examples of org.mortbay.jetty.HttpContent.release()

                response.sendError(500, e.getMessage());
        }
        finally
        {
            if (content!=null)
                content.release();
            else if (resource!=null)
                resource.release();
        }
       
    }
View Full Code Here

Examples of org.mortbay.resource.Resource.release()

        finally
        {
            if (content!=null)
                content.release();
            else if (resource!=null)
                resource.release();
        }
       
    }
   
    /* ------------------------------------------------------------ */
 
View Full Code Here

Examples of org.mule.api.MuleMessage.release()

                {
                    MuleEvent event = routeMessage(message);
                    MuleMessage returnedMessage = event == null ? null : event.getMessage();
                    if (returnedMessage != null)
                    {
                        returnedMessage.release();
                    }
                    return event;
                }
            });
            if (resultEvent != null)
View Full Code Here

Examples of org.mule.util.concurrent.Latch.release()

            {
                if (message.getData() != null)
                {
                    //This simulate what the browser would receive
                    data.set((message.getData()));
                    latch.release();
                }
            }
        });
        //The '/response' channel is set on the request message
        client.subscribe("/response");
View Full Code Here

Examples of org.neo4j.graphdb.Lock.release()

      }

      lock = tx.acquireWriteLock( sequence );
      int nextValue = updateSequenceValue( idSourceKey, sequence, increment );
      tx.success();
      lock.release();
      return nextValue;
    }
    finally {
      tx.close();
    }
View Full Code Here

Examples of org.noos.xing.mydoggy.itest.InteractiveMouse.release()

        interactiveUI.delay(500);
        mouse.press(InteractiveMouse.Type.LEFT);

        mouse.moveTo("toolWindowManager.bar." + anchor.toString(), 10, 15);
        interactiveUI.delay(500);
        mouse.release();
        interactiveUI.delay(500);
    }
   
}
View Full Code Here

Examples of org.ofbiz.service.semaphore.ServiceSemaphore.release()

            Debug.logError(te, "Problems with the transaction", module);
            throw new GenericServiceException("Problems with the transaction.", te.getNested());
        } finally {
            // release the semaphore lock
            if (lock != null) {
                lock.release();
            }

            // resume the parent transaction
            if (parentTransaction != null) {
                try {
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.