Class Recycler.LocalPoolHandle<T>

java.lang.Object
io.netty.util.Recycler.EnhancedHandle<T>
io.netty.util.Recycler.LocalPoolHandle<T>
All Implemented Interfaces:
ObjectPool.Handle<T>, Recycler.Handle<T>
Enclosing class:
Recycler<T>

private static final class Recycler.LocalPoolHandle<T> extends Recycler.EnhancedHandle<T>
We created this handle to avoid having more than 2 concrete implementations of Recycler.EnhancedHandle i.e. NOOP_HANDLE, Recycler.DefaultHandle and the one used in the LocalPool.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    recycle(T object)
    Recycle the Object if possible and so make it ready to be reused.
    void
    unguardedRecycle(java.lang.Object object)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait