|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openexchange.mail.cache.JSONMessageCacheConfiguration
public final class JSONMessageCacheConfiguration
JSONMessageCacheConfiguration - The configuration for JSON message cache.
| Method Summary | |
|---|---|
static JSONMessageCacheConfiguration |
getInstance()
Gets the configuration for JSON message cache. |
int |
getMaxWaitTimeMillis()
Gets the max. time in milliseconds to wait for a mail's JSON representation to become available in a folder map. |
int |
getShrinkerIntervalFolderMap()
Gets the shrinker interval in seconds for folder maps. |
int |
getShrinkerIntervalUserMap()
Gets the shrinker interval in seconds for the superior user map. |
int |
getTTLFolderMap()
Gets the time-to-live in seconds for an ID-to-JSON mapping put into folder map. |
int |
getTTLUserMap()
Gets the time-to-live in seconds for folder maps put into user map. |
static void |
initInstance()
Initializes the cache instance. |
boolean |
isEnabled()
Indicates if the JSON mail cache is enabled. |
boolean |
isUnseenOnly()
Whether to prefetch unseen mails only. |
void |
loadProperties()
Loads the JSON message cache properties. |
static void |
releaseInstance()
Releases the cache instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JSONMessageCacheConfiguration getInstance()
public static void initInstance()
throws MailException
MailException - If initialization failspublic static void releaseInstance()
public void loadProperties()
throws MailException
MailException - If loading of properties failspublic boolean isEnabled()
true if the JSON mail cache is enabled; otherwise falsepublic int getShrinkerIntervalUserMap()
public int getShrinkerIntervalFolderMap()
public int getTTLUserMap()
public int getTTLFolderMap()
public int getMaxWaitTimeMillis()
public boolean isUnseenOnly()
true if only unseen mails are prefetched; otherwise false
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||