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