com.atlassian.jira.issue.cache
Interface CacheManager
- All Known Implementing Classes:
- DefaultCacheManager
public interface CacheManager
Method Summary |
void |
flush(String cacheName)
|
void |
flush(String cacheName,
Collection issues)
|
void |
flush(String cacheName,
org.ofbiz.core.entity.GenericValue issue)
|
void |
flush(String cacheName,
Issue issue)
|
void |
flushAll()
|
void |
flushChildren(String cacheName,
String relation,
org.ofbiz.core.entity.GenericValue issue)
|
void |
flushParents(String cacheName,
String associationName,
org.ofbiz.core.entity.GenericValue child)
|
long |
getCapacity(String cacheName)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntitiesByGenericValue(String issueCache,
IssueManager decoratedIssueManager,
org.ofbiz.core.entity.GenericValue issue,
String relationName)
|
long |
getHitsCount(String cacheName)
|
long |
getMissCount(String cacheName)
|
long |
getSize(String cacheName)
|
org.ofbiz.core.entity.GenericValue |
getValue(String cacheName,
JiraManager manager,
Long id)
|
org.ofbiz.core.entity.GenericValue |
getValueByAttribute(String cacheName,
JiraManager manager,
String attribute,
Object key)
Retrieves a GenericValue from the cache by a attribute e.g. |
void |
resetStats(String cacheName)
|
void |
setCapacity(String cacheName,
long maxSize)
|
ISSUE_CACHE
static final String ISSUE_CACHE
- See Also:
- Constant Field Values
getHitsCount
long getHitsCount(String cacheName)
getMissCount
long getMissCount(String cacheName)
resetStats
void resetStats(String cacheName)
getCapacity
long getCapacity(String cacheName)
setCapacity
void setCapacity(String cacheName,
long maxSize)
getSize
long getSize(String cacheName)
getValue
org.ofbiz.core.entity.GenericValue getValue(String cacheName,
JiraManager manager,
Long id)
getValueByAttribute
org.ofbiz.core.entity.GenericValue getValueByAttribute(String cacheName,
JiraManager manager,
String attribute,
Object key)
- Retrieves a GenericValue from the cache by a attribute e.g. Name
NOTE. The attribute must be set up in the implementation of the cache with name cacheName
flush
void flush(String cacheName)
flush
void flush(String cacheName,
org.ofbiz.core.entity.GenericValue issue)
flush
void flush(String cacheName,
Issue issue)
flushChildren
void flushChildren(String cacheName,
String relation,
org.ofbiz.core.entity.GenericValue issue)
flushParents
void flushParents(String cacheName,
String associationName,
org.ofbiz.core.entity.GenericValue child)
throws org.ofbiz.core.entity.GenericEntityException
- Throws:
org.ofbiz.core.entity.GenericEntityException
flushAll
void flushAll()
getEntitiesByGenericValue
List<org.ofbiz.core.entity.GenericValue> getEntitiesByGenericValue(String issueCache,
IssueManager decoratedIssueManager,
org.ofbiz.core.entity.GenericValue issue,
String relationName)
flush
void flush(String cacheName,
Collection issues)
Copyright © 2002-2009 Atlassian. All Rights Reserved.