Class ObjectPool<A>


  • public class ObjectPool<A>
    extends java.lang.Object
    INTERNAL API
    • Constructor Summary

      Constructors 
      Constructor Description
      ObjectPool​(int capacity, scala.Function0<A> create, scala.Function1<A,​scala.runtime.BoxedUnit> clear)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      A acquire()  
      boolean release​(A obj)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectPool

        public ObjectPool​(int capacity,
                          scala.Function0<A> create,
                          scala.Function1<A,​scala.runtime.BoxedUnit> clear)
    • Method Detail

      • acquire

        public A acquire()
      • release

        public boolean release​(A obj)