public interface LocalMemoryContext
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes this LocalMemoryContext.
|
long |
getBytes() |
com.google.common.util.concurrent.ListenableFuture<?> |
setBytes(long bytes)
When this method returns, the bytes tracked by this LocalMemoryContext has been updated.
|
boolean |
trySetBytes(long bytes)
This method can return false when there is not enough memory available to satisfy a positive delta allocation
(
bytes is greater than the bytes tracked by this LocalMemoryContext). |
long getBytes()
com.google.common.util.concurrent.ListenableFuture<?> setBytes(long bytes)
boolean trySetBytes(long bytes)
bytes is greater than the bytes tracked by this LocalMemoryContext).
bytes.void close()
getBytes()) can be called.Copyright © 2012–2019. All rights reserved.