Class ScalablePool<T>


  • public class ScalablePool<T>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ScalablePool​(int initialSize, java.util.function.Supplier<? extends T> supplier, java.util.function.Consumer<? super T> resetter, java.util.function.Consumer<? super T> disposer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T get()  
      void release​(T t)  
      void shutdown()  
      • Methods inherited from class java.lang.Object

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

      • ScalablePool

        public ScalablePool​(int initialSize,
                            java.util.function.Supplier<? extends T> supplier,
                            java.util.function.Consumer<? super T> resetter,
                            java.util.function.Consumer<? super T> disposer)
    • Method Detail

      • get

        public T get()
      • release

        public void release​(T t)
      • shutdown

        public void shutdown()