com.jivesoftware.util
Interface Cacheable
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- CachedFilter, CachedPreparedStatement, DateValidator, DbAnnouncement, DbAttachment, DbAvatar, DbContentTag, DbForum, DbForumCategory, DbForumMessage, DbForumThread, DbGroup, DbPermissionsManager.PermissionsBundle, DbPoll, DbPresence, DbPrivateMessage, DbPrivateMessageFolder, DbQuery, DbRating, DbReadTracker.ReadTrackerKey, DbReadTracker.UserReadTracker, DbRoster, DbStatusLevel, DbStatusLevelManager.LeaderQueryCacheKey, DbUser, DbWatch, DecimalValidator, EmailToken, EmailValidator, LdapGroup, LdapSearchGroup, LdapUser, LengthValidator, LocalQuery, LongTree, NonValidatingValidator, NumberValidator, Permissions, PollCacheKey, PostCountStatusLevelCalculator.PostCountCacheKey, ProfileField, ProfileFieldOption, QueryCacheKey, QueryResult, RangeValidator, RatingCacheObject, RegexValidator, SimpleUserAdapter, TagQueryCacheObject, URLValidator, UserProfile, Vote
public interface Cacheable
- extends java.io.Serializable
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 |
int |
getCachedSize()
Returns the approximate size of the Object in bytes. |
getCachedSize
int getCachedSize()
- 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.
- Returns:
- the size of the Object in bytes.
Copyright © 1999-2006 Jive Software.