public interface Cacheable extends Serializable
While the accuracy of the size calculation is important, care should be taken to minimize the computation time so that cache operations are speedy.
Cache
Modifier and Type | Method and Description |
---|---|
int |
getCachedSize()
Returns the approximate size of the Object in bytes.
|
int getCachedSize() throws CannotCalculateSizeException
CannotCalculateSizeException
- if the size cannot be calculatedCopyright © 2003–2019 Ignite Realtime. All rights reserved.