Examples of removeFirst()


Examples of javax.sip.message.Request.removeFirst()

            } else {
                // Remove the topmost route header
                // The route header will make sure it gets to the right place.
                logger.info("proxy: Got a request " + request.getMethod());
                Request newRequest = (Request) request.clone();
                newRequest.removeFirst(RouteHeader.NAME);
                sipProvider.sendRequest(newRequest);
            }

        } catch (Exception ex) {
            ex.printStackTrace();
View Full Code Here

Examples of javax.sip.message.Response.removeFirst()

                if (ct != null) {
                    ServerTransaction st = (ServerTransaction) ct.getApplicationData();

                    // Strip the topmost via header
                    Response newResponse = (Response) response.clone();
                    newResponse.removeFirst(ViaHeader.NAME);
                    // The server tx goes to the terminated state.

                    st.sendResponse(newResponse);

                } else {
View Full Code Here

Examples of lombok.val.removeFirst()

          getAbsolutePath())));

    // While there are directories to process
    while (directoryQueue.size() > 0)
    {
      String currDirName = directoryQueue.removeFirst();

      try
      {
        File currDir = new File(currDirName);
        if (currDir.exists() && currDir.isDirectory())
View Full Code Here

Examples of net.sf.l2j.gameserver.pathfinding.utils.BinaryNodeHeap.removeFirst()

    while (i < 800)//TODO! Add limit to cfg
    {
      Node node;
      try
      {
         node = to_visit.removeFirst();
      }
      catch (Exception e)
      {
        // No Path found
        return null;
View Full Code Here

Examples of nexj.core.util.HashDeque.removeFirst()

      Holder registeredList = new HashHolder(mixinSet.size());

      while (!mixinSet.isEmpty())
      {
         Pair p = (Pair)mixinSet.removeFirst();

         if (registeredList.add(p))
         {
            String sNamespace = (String)p.getHead();
View Full Code Here

Examples of nexj.core.util.HolderDeque.removeFirst()

      Holder registeredList = new HashHolder(mixinSet.size());

      while (!mixinSet.isEmpty())
      {
         Pair p = (Pair)mixinSet.removeFirst();

         if (registeredList.add(p))
         {
            String sNamespace = (String)p.getHead();
View Full Code Here

Examples of org.apache.activemq.kaha.ListContainer.removeFirst()

                String subcriberId=getSubscriptionKey(clientId,subscritionName);
                String id=messageId.toString();
                ListContainer container=(ListContainer)subscriberAcks.get(subcriberId);
                if(container!=null){
                    // container.remove(id);
                    container.removeFirst();
                    AtomicInteger count=(AtomicInteger)ackContainer.remove(id);
                    if(count!=null){
                        if(count.decrementAndGet()>0){
                            ackContainer.put(id,count);
                        }else{
View Full Code Here

Examples of org.apache.activemq.store.kahadb.disk.util.SequenceSet.removeFirst()

            });
        }
        HashSet<Integer> missingJournalFiles = new HashSet<Integer>();
        while (!ss.isEmpty()) {
            missingJournalFiles.add((int) ss.removeFirst());
        }
        missingJournalFiles.removeAll(journal.getFileMap().keySet());

        if (!missingJournalFiles.isEmpty()) {
            if (LOG.isInfoEnabled()) {
View Full Code Here

Examples of org.apache.commons.collections.CursorableLinkedList.removeFirst()

                _poolList.add(key);
            }
            ObjectTimestampPair pair = null;
            // if there are any sleeping, just grab one of those
            try {
                pair = (ObjectTimestampPair)(pool.removeFirst());
                if(null != pair) {
                    _totalIdle--;
                }
            } catch(NoSuchElementException e) { /* ignored */
            }
View Full Code Here

Examples of org.apache.commons.collections.CursorableLinkedList.removeFirst()

                _poolList.add(key);
            }
            ObjectTimestampPair pair = null;
            // if there are any sleeping, just grab one of those
            try {
                pair = (ObjectTimestampPair)(pool.removeFirst());
                if(null != pair) {
                    _totalIdle--;
                }
            } catch(NoSuchElementException e) { /* ignored */
            }
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.