public class LiteSearchResultCacheEntry extends Object implements Serializable
Constructor and Description |
---|
LiteSearchResultCacheEntry() |
LiteSearchResultCacheEntry(List<LiteLabelSearchResult> list,
int requestedLimit,
long expirationTs,
long requestTs) |
Modifier and Type | Method and Description |
---|---|
long |
getExpirationTs() |
List<LiteLabelSearchResult> |
getList() |
List<LiteLabelSearchResult> |
getList(int limit) |
int |
getRequestedLimit() |
long |
getRequestTs() |
boolean |
hasEnoughRecordsForTheNewLimit(int newLimit)
Returns true if the cached record has enough labels for the provided limit.
|
void |
setExpirationTs(long expirationTs) |
void |
setList(List<LiteLabelSearchResult> list) |
void |
setRequestedLimit(int requestedLimit) |
public LiteSearchResultCacheEntry()
public LiteSearchResultCacheEntry(List<LiteLabelSearchResult> list, int requestedLimit, long expirationTs, long requestTs)
public List<LiteLabelSearchResult> getList()
public List<LiteLabelSearchResult> getList(int limit)
public void setList(List<LiteLabelSearchResult> list)
public int getRequestedLimit()
public void setRequestedLimit(int requestedLimit)
public long getExpirationTs()
public void setExpirationTs(long expirationTs)
public boolean hasEnoughRecordsForTheNewLimit(int newLimit)
public long getRequestTs()
Copyright © 2003–2020 Atlassian. All rights reserved.