Package io.netty.util
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>
private static final class Recycler.LocalPoolHandle<T> extends Recycler.EnhancedHandle<T>
We created this handle to avoid having more than 2 concrete implementations ofRecycler.EnhancedHandlei.e. NOOP_HANDLE,Recycler.DefaultHandleand the one used in the LocalPool.
-
-
Field Summary
Fields Modifier and Type Field Description private Recycler.UnguardedLocalPool<T>pool
-
Constructor Summary
Constructors Modifier Constructor Description privateLocalPoolHandle(Recycler.UnguardedLocalPool<T> pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrecycle(T object)Recycle theObjectif possible and so make it ready to be reused.voidunguardedRecycle(java.lang.Object object)
-
-
-
Field Detail
-
pool
private final Recycler.UnguardedLocalPool<T> pool
-
-
Constructor Detail
-
LocalPoolHandle
private LocalPoolHandle(Recycler.UnguardedLocalPool<T> pool)
-
-
Method Detail
-
recycle
public void recycle(T object)
Description copied from interface:ObjectPool.HandleRecycle theObjectif possible and so make it ready to be reused.
-
unguardedRecycle
public void unguardedRecycle(java.lang.Object object)
- Specified by:
unguardedRecyclein classRecycler.EnhancedHandle<T>
-
-