|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.database.DatabaseCacheManager
public class DatabaseCacheManager
Central cache management of all caches used by Jive Forums. Cache sizes and max lifetimes are stored as children of the following Jive property values. For example, the category cache size (in bytes) is set using the property cache.categoryCache.size and the category cache max lifetime (in milliseconds) is set using the property cache.categoryCache.maxLifetime:
Field Summary | |
---|---|
Cache |
announcementCache
A cache for announcement data. |
Cache |
attachmentCache
A cache for attachment objects. |
Cache |
categoryCache
A cache for Category objects. |
Cache |
forumCache
A cache for Forum objects. |
Cache |
forumIndexCache
A cache to map forum indexes to message ID's. |
Cache |
forumNNTPNameCache
A cache for mapping forum NNTP names to forum ID. |
Cache |
messageCache
A cache for ForumMessage objects. |
Cache |
privateMessageCache
A cache for PrivateMessage objects. |
Cache |
privateMessageFolderCache
A cache for PrivateMessageFolder objects. |
QueryCache |
queryCache
A cache for database query results generated by the use of ResultFilters. |
Cache |
questionCache
A cache for questions. |
Cache |
readTrackerCache
A cache for read tracker data. |
Cache |
rewardCache
A cache for reward data. |
Cache |
shortTermQueryCache
A short-term cache for query results. |
Cache |
threadCache
A cache for ForumThread objects. |
Cache |
treeWalkerCache
A cache for TreeWalker objects (represents the three structure of messages in a thread). |
Cache |
userMessageCountCache
A cache of user message counts. |
Cache |
watchCache
A cache for Watch objects. |
Constructor Summary | |
---|---|
DatabaseCacheManager()
Creates a new cache manager. |
Method Summary | |
---|---|
void |
announcementPut(long announcementID,
DbAnnouncement announcement)
|
void |
announcementPut(java.lang.String key,
long[] announcement)
|
void |
announcementRemove(long announcementID)
|
void |
announcementRemove(java.lang.String key)
|
void |
forumIndexPut(java.lang.String key,
long messageID)
|
void |
forumIndexRemove(java.lang.String key)
|
DbAttachment |
getAttachment(long attachmentID)
|
DbAttachment |
getAttachment(long attachmentID,
java.sql.Connection con)
|
DbForum |
getForum(long forumID)
|
DbForumCategory |
getForumCategory(long categoryID)
|
void |
initQueryCache()
|
boolean |
isShortTermQueryCacheEnabled()
Returns true if the short term query cache is enabled. |
void |
messagePut(long id,
ForumMessage message)
|
void |
messageRemove(long id)
|
java.lang.Object |
queryGet(QueryCacheKey key)
|
void |
queryPut(QueryCacheKey countKey,
java.lang.Object value)
|
void |
queryRemove(int objectType,
long objectID)
|
void |
setShortTermQueryCacheEnabled(boolean shortTermQueryCacheEnabled)
Enables or disables the short-term query cache. |
void |
setShortTermQueryCacheLifetime(long stqcLifetime)
Sets the expiration time in milliseconds for entries in the short term query cache. |
void |
threadPut(long id,
ForumThread thread)
|
void |
threadRemove(long id)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Cache categoryCache
public Cache forumCache
public Cache forumNNTPNameCache
public Cache threadCache
public Cache treeWalkerCache
public Cache messageCache
public Cache privateMessageCache
public Cache privateMessageFolderCache
public Cache forumIndexCache
public QueryCache queryCache
public Cache shortTermQueryCache
public Cache watchCache
public Cache userMessageCountCache
public Cache attachmentCache
public Cache rewardCache
public Cache readTrackerCache
public Cache announcementCache
public Cache questionCache
Constructor Detail |
---|
public DatabaseCacheManager()
Method Detail |
---|
public void initQueryCache()
public boolean isShortTermQueryCacheEnabled()
public void setShortTermQueryCacheEnabled(boolean shortTermQueryCacheEnabled)
shortTermQueryCacheEnabled
- true if the short term query cache should be
enabled.public void setShortTermQueryCacheLifetime(long stqcLifetime)
stqcLifetime
- the expiration time for entries in the short term query cache.public DbForumCategory getForumCategory(long categoryID) throws ForumCategoryNotFoundException
ForumCategoryNotFoundException
public DbForum getForum(long forumID) throws ForumNotFoundException
ForumNotFoundException
public DbAttachment getAttachment(long attachmentID) throws AttachmentNotFoundException
AttachmentNotFoundException
public DbAttachment getAttachment(long attachmentID, java.sql.Connection con) throws AttachmentNotFoundException
AttachmentNotFoundException
public void threadPut(long id, ForumThread thread)
public void messagePut(long id, ForumMessage message)
public void threadRemove(long id)
public void queryRemove(int objectType, long objectID)
public void queryPut(QueryCacheKey countKey, java.lang.Object value)
public void forumIndexPut(java.lang.String key, long messageID)
public void forumIndexRemove(java.lang.String key)
public void messageRemove(long id)
public java.lang.Object queryGet(QueryCacheKey key)
public void announcementPut(long announcementID, DbAnnouncement announcement)
public void announcementRemove(long announcementID)
public void announcementPut(java.lang.String key, long[] announcement)
public void announcementRemove(java.lang.String key)
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |