Package com.prodeagle.java.counters

Examples of com.prodeagle.java.counters.BatchCounter


   
    int numberOfCounters = (int) (random * 100);
   
    _logger.info("Number of counters to randomly increment: " + numberOfCounters);
   
    BatchCounter batchCounters = new BatchCounter();
   
    while (numberOfCounters > 0) {
      batchCounters.increment("Counter" + numberOfCounters);
      numberOfCounters--;
    }
   
    batchCounters.commit();
  }
View Full Code Here


      }
    } else {
      Counter.increment("Counter_Singular");
      _logger.info("Counter_Singular incremented");
     
      BatchCounter counters = new BatchCounter();
      counters.increment("Counter A");
      counters.increment("Counter B");
      counters.increment("Counter C");
      counters.commit();
     
      _logger.info("Counters A, B and C incremented");
     
      try {
        resp.getWriter().print("4 counters incremented");
View Full Code Here

TOP

Related Classes of com.prodeagle.java.counters.BatchCounter

Copyright © 2018 www.massapicom. 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.