final class PooledByteBufAllocator.PoolThreadLocalCache extends FastThreadLocal<PoolThreadCache>
| Modifier and Type | Field and Description |
|---|---|
private boolean |
useCacheForAllThreads |
| Constructor and Description |
|---|
PoolThreadLocalCache(boolean useCacheForAllThreads) |
| Modifier and Type | Method and Description |
|---|---|
protected PoolThreadCache |
initialValue()
Returns the initial value for this thread-local variable.
|
private <T> PoolArena<T> |
leastUsedArena(PoolArena<T>[] arenas) |
protected void |
onRemoval(PoolThreadCache threadCache)
Invoked when this thread local variable is removed by
FastThreadLocal.remove(). |
protected PoolThreadCache initialValue()
FastThreadLocalinitialValue in class FastThreadLocal<PoolThreadCache>protected void onRemoval(PoolThreadCache threadCache)
FastThreadLocalFastThreadLocal.remove().onRemoval in class FastThreadLocal<PoolThreadCache>