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 |
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 |
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
public static final String ISSUE_CACHE
- See Also:
- Constant Field Values
getHitsCount
public long getHitsCount(String cacheName)
getMissCount
public long getMissCount(String cacheName)
resetStats
public void resetStats(String cacheName)
getCapacity
public long getCapacity(String cacheName)
setCapacity
public void setCapacity(String cacheName,
long maxSize)
getSize
public long getSize(String cacheName)
getValue
public org.ofbiz.core.entity.GenericValue getValue(String cacheName,
JiraManager manager,
Long id)
getValueByAttribute
public 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
public void flush(String cacheName)
flush
public void flush(String cacheName,
org.ofbiz.core.entity.GenericValue issue)
flushChildren
public void flushChildren(String cacheName,
String relation,
org.ofbiz.core.entity.GenericValue issue)
flushParents
public 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
public void flushAll()
getEntitiesByGenericValue
public List getEntitiesByGenericValue(String issueCache,
IssueManager decoratedIssueManager,
org.ofbiz.core.entity.GenericValue issue,
String relationName)
flush
public void flush(String cacheName,
Collection issues)
Copyright © 2002-2006 Atlassian. All Rights Reserved.