@ThreadSafe public class SpillSpaceTracker extends Object
| Constructor and Description |
|---|
SpillSpaceTracker(io.airlift.units.DataSize maxSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
free(long bytes) |
long |
getCurrentBytes()
Returns the number of bytes currently on disk.
|
long |
getMaxBytes() |
com.google.common.util.concurrent.ListenableFuture<?> |
reserve(long bytes)
Reserves the given number of bytes to spill.
|
String |
toString() |
public com.google.common.util.concurrent.ListenableFuture<?> reserve(long bytes)
ExceededSpillLimitExceptionpublic void free(long bytes)
public long getCurrentBytes()
public long getMaxBytes()
Copyright © 2012–2019. All rights reserved.