@Public public interface MemorySegmentPool extends MemorySegmentSource
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PAGE_SIZE |
Modifier and Type | Method and Description |
---|---|
static MemorySegmentPool |
createHeapPool(MemorySize maxMemory,
MemorySize pageSize) |
int |
freePages() |
int |
pageSize()
Get the page size of each page this pool holds.
|
void |
returnAll(List<MemorySegment> memory)
Return all pages back into this pool.
|
nextSegment
static final int DEFAULT_PAGE_SIZE
int pageSize()
void returnAll(List<MemorySegment> memory)
memory
- the pages which want to be returned.int freePages()
static MemorySegmentPool createHeapPool(MemorySize maxMemory, MemorySize pageSize)
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.