Interface ObjectPool.Handle<T>

Type Parameters:
T -
All Known Subinterfaces:
Recycler.Handle<T>
All Known Implementing Classes:
Recycler.DefaultHandle, Recycler.EnhancedHandle
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 Summary

    Modifier and Type
    Method
    Description
    void
    recycle(T self)
    Recycle the Object if possible and so make it ready to be reused.
  • Method Details

    • recycle

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