Package com.zaxxer.hikari.util.ConcurrentBag

Examples of com.zaxxer.hikari.util.ConcurrentBag.BagEntry


      if (list == null) {
         threadList.set(new ArrayList<WeakReference<BagEntry>>(16));
      }
      else {
         for (int i = list.size() - 1; i >= 0; i--) {
            final BagEntry bagEntry = list.remove(i).get();
            if (bagEntry != null && bagEntry.state.compareAndSet(STATE_NOT_IN_USE, STATE_IN_USE)) {
               return (T) bagEntry;
            }
         }
      }
View Full Code Here


      if (list == null) {
         threadList.set(new ArrayList<WeakReference<BagEntry>>(16));
      }
      else {
         for (int i = list.size() - 1; i >= 0; i--) {
            final BagEntry bagEntry = list.remove(i).get();
            if (bagEntry != null && bagEntry.state.compareAndSet(STATE_NOT_IN_USE, STATE_IN_USE)) {
               return (T) bagEntry;
            }
         }
      }
View Full Code Here

TOP

Related Classes of com.zaxxer.hikari.util.ConcurrentBag.BagEntry

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.