public class MemoryPoolFactory extends Object
MemorySegmentPool
from MemoryOwner
. The returned memory
pool will try to preempt memory when there is no memory left.Constructor and Description |
---|
MemoryPoolFactory(MemorySegmentPool innerPool) |
Modifier and Type | Method and Description |
---|---|
MemoryPoolFactory |
addOwners(Iterable<MemoryOwner> newOwners) |
long |
bufferPreemptCount() |
Iterable<MemoryOwner> |
memoryOwners() |
void |
notifyNewOwner(MemoryOwner owner) |
long |
totalBufferSize() |
long |
usedBufferSize() |
public MemoryPoolFactory(MemorySegmentPool innerPool)
public MemoryPoolFactory addOwners(Iterable<MemoryOwner> newOwners)
public void notifyNewOwner(MemoryOwner owner)
@VisibleForTesting public Iterable<MemoryOwner> memoryOwners()
public long bufferPreemptCount()
public long usedBufferSize()
public long totalBufferSize()
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.