public interface MemoryRequestServer
WritableDirectHandle. Refer to DefaultMemoryRequestServer for how this can be
used.| Modifier and Type | Method and Description |
|---|---|
WritableMemory |
request(long capacityBytes)
Request new WritableMemory with the given capacity.
|
void |
requestClose(WritableMemory memToClose,
WritableMemory newMemory)
Request close the AutoCloseable resource.
|
WritableMemory request(long capacityBytes)
capacityBytes - The capacity being requested.void requestClose(WritableMemory memToClose, WritableMemory newMemory)
memToClose - the relevant WritbleMemory to be considered for closing.newMemory - the newly allocated WritableMemory. This is returned from the client
for the convenience of the resource owner. It is optional and may be null.Copyright © 2015–2018 Yahoo! Inc.. All rights reserved.