T
- the type of object which's size going to be estimated.public interface SizeEstimator<T>
Modifier and Type | Field and Description |
---|---|
static int |
REFERENCE_COST_IN_BYTES
Assume compressed object reference is used.
|
Modifier and Type | Method and Description |
---|---|
void |
add(long size) |
long |
calculateSize(T object) |
long |
getSize() |
void |
reset() |
static final int REFERENCE_COST_IN_BYTES
long getSize()
void add(long size)
long calculateSize(T object)
void reset()
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.