Class ObjectPool<T>

java.lang.Object
ai.djl.mxnet.jna.ObjectPool<T>
Type Parameters:
T - the type of object to put in the pool

public class ObjectPool<T> extends Object
A generic object pool implementation.
  • Constructor Details

  • Method Details

    • acquire

      public T acquire()
    • recycle

      public void recycle(T item)