Package io.netty.buffer
Class AdaptivePoolingAllocator.ConcurrentQueueChunkCache
- java.lang.Object
-
- io.netty.buffer.AdaptivePoolingAllocator.ConcurrentQueueChunkCache
-
- All Implemented Interfaces:
AdaptivePoolingAllocator.ChunkCache
- Enclosing class:
- AdaptivePoolingAllocator
private static final class AdaptivePoolingAllocator.ConcurrentQueueChunkCache extends java.lang.Object implements AdaptivePoolingAllocator.ChunkCache
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Queue<AdaptivePoolingAllocator.SizeClassedChunk>queue
-
Constructor Summary
Constructors Modifier Constructor Description privateConcurrentQueueChunkCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanofferChunk(AdaptivePoolingAllocator.Chunk chunk)AdaptivePoolingAllocator.SizeClassedChunkpollChunk(int size)
-
-
-
Field Detail
-
queue
private final java.util.Queue<AdaptivePoolingAllocator.SizeClassedChunk> queue
-
-
Method Detail
-
pollChunk
public AdaptivePoolingAllocator.SizeClassedChunk pollChunk(int size)
- Specified by:
pollChunkin interfaceAdaptivePoolingAllocator.ChunkCache
-
offerChunk
public boolean offerChunk(AdaptivePoolingAllocator.Chunk chunk)
- Specified by:
offerChunkin interfaceAdaptivePoolingAllocator.ChunkCache
-
-