Package com.avaje.ebeaninternal.server.lib.sql.PooledConnectionStatistics

Examples of com.avaje.ebeaninternal.server.lib.sql.PooledConnectionStatistics.LoadValues


     
      final ReentrantLock lock = this.lock;
      lock.lock();
      try {

        LoadValues aggregate = collectedStats.getValues(reset);

        freeList.collectStatistics(aggregate, reset);
        busyList.collectStatistics(aggregate, reset);

        aggregate.plus(accumulatedValues);
       
        this.accumulatedValues = (reset) ? new LoadValues() : aggregate;
       
        return new DataSourcePoolStatistics(aggregate.getCollectionStart(), aggregate.getCount(), aggregate.getErrorCount(), aggregate.getHwmMicros(), aggregate.getTotalMicros());
       
      } finally {
          lock.unlock();
      }
  }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.lib.sql.PooledConnectionStatistics.LoadValues

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.