| org.jivesoftware.util.cache.Cacheable
All known Subclasses: org.jivesoftware.openfire.privacy.PrivacyList, org.jivesoftware.openfire.roster.RosterItem, org.jivesoftware.openfire.group.Group, org.jivesoftware.openfire.entitycaps.EntityCapabilities, org.jivesoftware.openfire.filetransfer.FileTransfer, org.jivesoftware.openfire.spi.ClientRoute, org.jivesoftware.openfire.user.User, org.jivesoftware.openfire.server.RemoteServerConfiguration, org.jivesoftware.openfire.roster.Roster, org.jivesoftware.openfire.privacy.PrivacyItem,
Cacheable | public interface Cacheable extends java.io.Serializable(Code) | | Interface that defines the necessary behavior for objects added to a Cache.
Objects only need to know how big they are (in bytes). That size
should be considered to be a best estimate of how much memory the Object
occupies and may be based on empirical trials or dynamic calculations.
While the accuracy of the size calculation is important, care should be
taken to minimize the computation time so that cache operations are
speedy.
author: Jive Software See Also: org.jivesoftware.util.cache.Cache |
Method Summary | |
public int | getCachedSize() Returns the approximate size of the Object in bytes. |
getCachedSize | public int getCachedSize()(Code) | | Returns the approximate size of the Object in bytes. The size should be
considered to be a best estimate of how much memory the Object occupies
and may be based on empirical trials or dynamic calculations.
the size of the Object in bytes. |
|
|