Class LiteSearchResultCacheEntry
java.lang.Object
com.atlassian.confluence.impl.labels.adaptivelabelcache.LiteSearchResultCacheEntry
- All Implemented Interfaces:
- Serializable
Replacement for SearchResultCacheEntry
 LiteSearchResultCacheEntry does not have links to Hibernate objects
 It occupies less memory in RAM and do not require detaching objects before serialising
- Since:
- 7.7.0
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionLiteSearchResultCacheEntry(List<LiteLabelSearchResult> list, int requestedLimit, long expirationTs, long requestTs) 
- 
Method SummaryModifier and TypeMethodDescriptionlonggetList()getList(int limit) intlongbooleanhasEnoughRecordsForTheNewLimit(int newLimit) Returns true if the cached record has enough labels for the provided limit.voidsetExpirationTs(long expirationTs) voidsetList(List<LiteLabelSearchResult> list) voidsetRequestedLimit(int requestedLimit) 
- 
Constructor Details- 
LiteSearchResultCacheEntrypublic LiteSearchResultCacheEntry()
- 
LiteSearchResultCacheEntrypublic LiteSearchResultCacheEntry(List<LiteLabelSearchResult> list, int requestedLimit, long expirationTs, long requestTs) 
 
- 
- 
Method Details- 
getList
- 
getList
- 
setList
- 
getRequestedLimitpublic int getRequestedLimit()
- 
setRequestedLimitpublic void setRequestedLimit(int requestedLimit) 
- 
getExpirationTspublic long getExpirationTs()
- 
setExpirationTspublic void setExpirationTs(long expirationTs) 
- 
hasEnoughRecordsForTheNewLimitpublic boolean hasEnoughRecordsForTheNewLimit(int newLimit) Returns true if the cached record has enough labels for the provided limit. For example, if we need 10 labels for a space, and the existing cached data was requested before with the limit of 20, we can use this cached record. Or it it was requested with the limit of 5, but has only 2 labels, it means cache has all the existing labels so we have enough records as well.
- 
getRequestTspublic long getRequestTs()
 
-