Package io.netty.buffer
Class AdaptivePoolingAllocator.Magazine.AdaptiveRecycler
- java.lang.Object
-
- io.netty.util.Recycler<AdaptivePoolingAllocator.AdaptiveByteBuf>
-
- io.netty.buffer.AdaptivePoolingAllocator.Magazine.AdaptiveRecycler
-
- Enclosing class:
- AdaptivePoolingAllocator.Magazine
private static final class AdaptivePoolingAllocator.Magazine.AdaptiveRecycler extends Recycler<AdaptivePoolingAllocator.AdaptiveByteBuf>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.netty.util.Recycler
Recycler.EnhancedHandle<T>, Recycler.Handle<T>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAdaptiveRecycler()privateAdaptiveRecycler(int maxCapacity)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected AdaptivePoolingAllocator.AdaptiveByteBufnewObject(Recycler.Handle<AdaptivePoolingAllocator.AdaptiveByteBuf> handle)static AdaptivePoolingAllocator.Magazine.AdaptiveRecyclersharedWith(int maxCapacity)static AdaptivePoolingAllocator.Magazine.AdaptiveRecyclerthreadLocal()
-
-
-
Method Detail
-
newObject
protected AdaptivePoolingAllocator.AdaptiveByteBuf newObject(Recycler.Handle<AdaptivePoolingAllocator.AdaptiveByteBuf> handle)
- Specified by:
newObjectin classRecycler<AdaptivePoolingAllocator.AdaptiveByteBuf>- Parameters:
handle- can NOT be null.
-
threadLocal
public static AdaptivePoolingAllocator.Magazine.AdaptiveRecycler threadLocal()
-
sharedWith
public static AdaptivePoolingAllocator.Magazine.AdaptiveRecycler sharedWith(int maxCapacity)
-
-