Package 

Interface Pools.Pool


  • 
    public interface Pools.Pool<T>
    
                        

    Interface for managing a pool of objects.

    • Method Summary

      Modifier and Type Method Description
      abstract T acquire()
      abstract boolean release(@NonNull() T instance) Release an instance to the pool.
      • Methods inherited from class java.lang.Object

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

      • release

         abstract boolean release(@NonNull() T instance)

        Release an instance to the pool.

        Parameters:
        instance - The instance to release.