Examples of decrement()


Examples of net.sf.clairv.search.util.Counter.decrement()

                  Scorer.calculateScore(docList,
                      receivedSdList, idf);
                  resp.value = new KeywordQueryRespMessage(
                      receivedSdList);

                  counter.decrement();
                }
              }
            });
      } else {
        // on the last node
View Full Code Here

Examples of net.sf.joafip.entity.MutableInteger.decrement()

    }
    final MutableInteger count = linkMap.get(key);
    if (count == null) {
      linkMap.put(key, new MutableInteger(-1));
    } else {
      if (count.decrement() == 0) {
        linkMap.remove(key);
      }
    }
  }
View Full Code Here

Examples of org.apache.activemq.management.CountStatisticImpl.decrement()

        assertEquals(1, stat.getCount());

        stat.increment();
        assertEquals(2, stat.getCount());

        stat.decrement();
        assertEquals(1, stat.getCount());

        Thread.sleep(500);

        stat.increment();
View Full Code Here

Examples of org.apache.camel.util.concurrent.CountingLatch.decrement()

                ProcessCall call = new ProcessCall(subExchange, producer, new AsyncCallback() {
                    public void done(boolean doneSynchronously) {
                        if (streaming && aggregationStrategy != null) {
                            doAggregate(result, subExchange);
                        }
                        completedExchanges.decrement();
                    }

                });
                executor.execute(call);
                i++;
View Full Code Here

Examples of org.apache.camel.util.concurrent.CountingLatch.decrement()

                ProcessCall call = new ProcessCall(subExchange, producer, new AsyncCallback() {
                    public void done(boolean doneSynchronously) {
                        if (streaming && aggregationStrategy != null) {
                            doAggregate(result, subExchange);
                        }
                        completedExchanges.decrement();
                    }

                });
                executor.execute(call);
                i++;
View Full Code Here

Examples of org.apache.commons.lang.mutable.MutableInt.decrement()

                      {
                        @Override
                        public void onSuccess(ZkWorker zkWorker)
                        {
                          synchronized (waitingForMonitor) {
                            waitingFor.decrement();
                            waitingForMonitor.notifyAll();
                          }
                        }

                        @Override
View Full Code Here

Examples of org.apache.curator.framework.recipes.atomic.DistributedAtomicInteger.decrement()

        } catch (Exception e) {
            throw new LumifyException("failed to initialize counter for " + userId);
        }

        try {
            AtomicValue<Integer> count = direction == Direction.INCREMENT ? distributedAtomicInteger.increment() : distributedAtomicInteger.decrement();
            if (count.succeeded()) {
                return count.postValue();
            } else {
                throw new LumifyException("failed to " + direction + " counter for " + userId);
            }
View Full Code Here

Examples of org.apache.http.mockup.RequestCount.decrement()

       
        EventListener clientEventListener = new SimpleEventListener() {

            @Override
      public void connectionClosed(NHttpConnection conn) {
                closedClientConns.decrement();
                super.connectionClosed(conn);
            }
           
        };
       
View Full Code Here

Examples of org.apache.http.mockup.RequestCount.decrement()

            public boolean handle(final IOException ex) {
                return false;
            }

            public boolean handle(final RuntimeException ex) {
                requestConns.decrement();                   
                return false;
            }
         
        };
       
View Full Code Here

Examples of org.apache.http.mockup.RequestCount.decrement()

            public boolean handle(final IOException ex) {
                return false;
            }

            public boolean handle(final RuntimeException ex) {
                requestConns.decrement();                   
                return true;
            }
         
        };
       
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.