Interface ObjectPool.Handle<T>

  • Type Parameters:
    T -
    All Known Subinterfaces:
    Recycler.Handle<T>
    Enclosing class:
    ObjectPool<T>

    public static interface ObjectPool.Handle<T>
    Handle for an pooled Object that will be used to notify the ObjectPool once it can reuse the pooled Object again.
    • Method Detail

      • recycle

        void recycle​(T self)
        Recycle the Object if possible and so make it ready to be reused.