Class Recycler<T>
java.lang.Object
io.netty.util.Recycler<T>
- Type Parameters:
T- the type of the pooled object
Light-weight object pool based on a thread-local stack.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic interface -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRecycler()protectedRecycler(int maxCapacityPerThread) protectedRecycler(int maxCapacityPerThread, int maxSharedCapacityFactor) Deprecated.protectedRecycler(int maxCapacityPerThread, int ratio, int chunkSize) protectedRecycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread) Deprecated.protectedRecycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread, int delayedQueueRatio) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal Tget()protected abstract TnewObject(Recycler.Handle<T> handle) final booleanrecycle(T o, Recycler.Handle<T> handle) Deprecated.
-
Constructor Details
-
Recycler
protected Recycler() -
Recycler
protected Recycler(int maxCapacityPerThread) -
Recycler
Deprecated. -
Recycler
@Deprecated protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread) Deprecated. -
Recycler
@Deprecated protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread, int delayedQueueRatio) Deprecated. -
Recycler
protected Recycler(int maxCapacityPerThread, int ratio, int chunkSize)
-
-
Method Details
-
get
-
recycle
Deprecated. -
newObject
- Parameters:
handle- can NOT be null.
-
Recycler(),Recycler(int),Recycler(int, int, int).