T - the type of the pooled objectpublic abstract class Recycler<T> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Recycler.EnhancedHandle<T> |
static interface |
Recycler.Handle<T> |
| Modifier | Constructor and Description |
|---|---|
protected |
Recycler() |
protected |
Recycler(int maxCapacityPerThread) |
protected |
Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor)
Deprecated.
Use one of the following instead:
Recycler(), Recycler(int), Recycler(int, int, int). |
protected |
Recycler(int maxCapacityPerThread,
int ratio,
int chunkSize) |
protected |
Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread)
Deprecated.
Use one of the following instead:
Recycler(), Recycler(int), Recycler(int, int, int). |
protected |
Recycler(int maxCapacityPerThread,
int maxSharedCapacityFactor,
int ratio,
int maxDelayedQueuesPerThread,
int delayedQueueRatio)
Deprecated.
Use one of the following instead:
Recycler(), Recycler(int), Recycler(int, int, int). |
| Modifier and Type | Method and Description |
|---|---|
T |
get() |
protected abstract T |
newObject(Recycler.Handle<T> handle) |
boolean |
recycle(T o,
Recycler.Handle<T> handle)
Deprecated.
|
protected Recycler()
protected Recycler(int maxCapacityPerThread)
@Deprecated protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor)
Recycler(), Recycler(int), Recycler(int, int, int).@Deprecated protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread)
Recycler(), Recycler(int), Recycler(int, int, int).@Deprecated protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor, int ratio, int maxDelayedQueuesPerThread, int delayedQueueRatio)
Recycler(), Recycler(int), Recycler(int, int, int).protected Recycler(int maxCapacityPerThread,
int ratio,
int chunkSize)
public final T get()
@Deprecated public final boolean recycle(T o, Recycler.Handle<T> handle)
ObjectPool.Handle.recycle(Object).protected abstract T newObject(Recycler.Handle<T> handle)
handle - can NOT be null.Copyright © 2008–2025 The Netty Project. All rights reserved.