|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WorklogHistoryCache
Caches the computed worklog history timeline, on a per-issue base. This data is not persisted anywhere. The eviction is done by
CacheEvictionListener
, which will remove entries when they are changed through JIRA.
The cache size can be configured from the general GH configuration.
Entries in the cache are considered eternal, meaning live-until-evicted. The eviction strategy is LRU by default. There is currently no disk overflow.
Field Summary | |
---|---|
static int |
DEFAULT_MEMORY_SIZE
|
static java.lang.String |
SERVICE
|
Method Summary | |
---|---|
long |
calculateInMemorySize()
Warning: huge performance / blocking impact. |
void |
clear()
Removes all entries from the cache |
net.sf.ehcache.Element |
getElement(java.lang.String issueKey)
Get the cache element for the issue key. |
long |
getMemoryStoreSize()
|
double |
getUsageRatio()
|
void |
remove(java.lang.String issueKey)
|
void |
resize(int newSize)
Resizes the cache. |
void |
setEntry(java.lang.String issueKey,
java.util.SortedMap<org.joda.time.DateMidnight,DayWorkHistory> entry)
|
Field Detail |
---|
static final java.lang.String SERVICE
static final int DEFAULT_MEMORY_SIZE
Method Detail |
---|
net.sf.ehcache.Element getElement(java.lang.String issueKey)
issueKey
- : The issue to fetch the timeline forvoid setEntry(java.lang.String issueKey, java.util.SortedMap<org.joda.time.DateMidnight,DayWorkHistory> entry)
void remove(java.lang.String issueKey)
void clear()
long getMemoryStoreSize()
double getUsageRatio()
long calculateInMemorySize()
void resize(int newSize)
newSize
- : The maximum number of entries that the cache can hold.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |