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
Copyright © 2003-2008 Jive Software.