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.
|
com.google.common.util.concurrent.ListenableFuture<?> |
setBytes(long bytes,
boolean enforceBroadcastMemoryLimit)
This method will eventually call
setBytes(long bytes) function, after conditionally check against
broadcast memory usage limit based on the value of enforceBroadcastMemoryLimit. |
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). |
boolean |
trySetBytes(long bytes,
boolean enforceBroadcastMemoryLimit)
This method will eventually call
trySetBytes(long bytes) function, after conditionally check against
broadcast memory usage limit based on the value of enforceBroadcastMemoryLimit. |
long getBytes()
com.google.common.util.concurrent.ListenableFuture<?> setBytes(long bytes)
com.google.common.util.concurrent.ListenableFuture<?> setBytes(long bytes,
boolean enforceBroadcastMemoryLimit)
setBytes(long bytes) function, after conditionally check against
broadcast memory usage limit based on the value of enforceBroadcastMemoryLimit.boolean trySetBytes(long bytes)
bytes is greater than the bytes tracked by this LocalMemoryContext).
bytes.boolean trySetBytes(long bytes,
boolean enforceBroadcastMemoryLimit)
trySetBytes(long bytes) function, after conditionally check against
broadcast memory usage limit based on the value of enforceBroadcastMemoryLimit.void close()
getBytes()) can be called.Copyright © 2012–2022. All rights reserved.