public class CachelessSegmentPool extends Object implements MemorySegmentPool
MemorySegmentPool without cache.DEFAULT_PAGE_SIZE| 构造器和说明 |
|---|
CachelessSegmentPool(long maxMemory,
int pageSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
freePages() |
MemorySegment |
nextSegment()
Gets the next memory segment.
|
int |
pageSize()
Get the page size of each page this pool holds.
|
void |
returnAll(List<MemorySegment> memory)
Return all pages back into this pool.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateHeapPoolpublic MemorySegment nextSegment()
MemorySegmentSourcenextSegment 在接口中 MemorySegmentSourcepublic int pageSize()
MemorySegmentPoolpageSize 在接口中 MemorySegmentPoolpublic void returnAll(List<MemorySegment> memory)
MemorySegmentPoolreturnAll 在接口中 MemorySegmentPoolmemory - the pages which want to be returned.public int freePages()
freePages 在接口中 MemorySegmentPoolCopyright © 2023 The Apache Software Foundation. All rights reserved.