@InterfaceAudience.Private public class RegionSizeImpl extends Object implements RegionSize
| Constructor and Description |
|---|
RegionSizeImpl(long initialSize) |
| Modifier and Type | Method and Description |
|---|---|
long |
getSize()
Returns the size of the region.
|
long |
heapSize() |
RegionSizeImpl |
incrementSize(long delta)
Atomically adds the provided
delta to the region size. |
RegionSizeImpl |
setSize(long newSize)
Updates the size of the Region.
|
public RegionSizeImpl setSize(long newSize)
RegionSizesetSize in interface RegionSizenewSize - the new size of the Regionthispublic RegionSizeImpl incrementSize(long delta)
RegionSizedelta to the region size.incrementSize in interface RegionSizedelta - The change in size in bytes of the region.thispublic long getSize()
RegionSizegetSize in interface RegionSizeCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.