public class CacheSizeInfo extends Object
Cache.reportSize(ObjectSizeCalculatorInterface).
As reportSize() can take a serious amount of time, the number of elements is stored twice: Once before
the actual byte count is calculated, and one after. This makes it easier to see whether important changes
took place during calculation, like expiration, eviction or a mass-insert of elements.| Constructor and Description |
|---|
CacheSizeInfo(String id,
int elemsBefore,
long sizeInByte,
int elemsAfter) |
| Modifier and Type | Method and Description |
|---|---|
int |
getElemsAfter() |
int |
getElemsBefore() |
String |
getId() |
long |
getSizeInByte() |
String |
toString() |
public CacheSizeInfo(String id, int elemsBefore, long sizeInByte, int elemsAfter)
Copyright © 2018 trivago. All rights reserved.