public interface MemoryRequestServer
| Modifier and Type | Method and Description |
|---|---|
WritableMemory |
request(WritableMemory currentWritableMemory,
long capacityBytes)
Request new WritableMemory with the given capacity.
|
void |
requestClose(WritableMemory memToClose,
WritableMemory newMemory)
Request close the AutoCloseable resource.
|
WritableMemory request(WritableMemory currentWritableMemory, long capacityBytes)
currentWritableMemory - the current writableMemory of the client. It must be non-null.capacityBytes - The capacity being requested. It must be ≥ 0.void requestClose(WritableMemory memToClose, WritableMemory newMemory)
memToClose - the relevant WritbleMemory to be considered for closing. It must be non-null.newMemory - the newly allocated WritableMemory. It must be non-null.
This is returned from the client to facilitate tracking for the convenience of the resource owner.Copyright © 2015–2020 The Apache Software Foundation. All rights reserved.