| com.Yasna.util.Cacheable
All known Subclasses: com.Yasna.forum.ForumPermissions, com.Yasna.forum.database.DbForum, com.Yasna.forum.database.DbThreadType, com.Yasna.util.Cache, com.Yasna.util.CacheableString, com.Yasna.forum.database.DbForumThread, com.Yasna.forum.database.DbForumGroup, com.Yasna.forum.database.DbUser, com.Yasna.forum.database.DbForumMessage, com.Yasna.util.CacheableInteger, com.Yasna.forum.database.DbGroup, com.Yasna.forum.database.DbCategory,
Cacheable | public interface Cacheable (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.
See Also: Cache |
Method Summary | |
public int | getSize() Returns the approximate size of the Object in bytes. |
getSize | public int getSize()(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. |
|
|