Interface ObjectPool.Handle<T>

  • Type Parameters:
    T -
    All Known Subinterfaces:
    Enclosing class:

    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.