public interface CacheBucket
Modifier and Type | Method and Description |
---|---|
void |
calculateRelevency()
Tell the bucket to re-evaluate its relevency.
|
boolean |
eject()
Request that the bucket release its data and mark itself as invalid.
|
Dataset |
getData(TagHistoryQueryProvider backingProvider)
Returns the cached data, or goes to the store and retrieves it.
|
long |
getEndTime() |
int |
getMemorySize()
A rough estimation, in bytes, of the weight of this bucket.
|
double |
getRelevencyScore()
The score of how "important" this bucket is, so that it can be ranked against other buckets.
|
long |
getStartTime() |
boolean |
isValid()
Indicates that the bucket is still valid and hasn't been ejected.
|
boolean isValid()
long getStartTime()
long getEndTime()
int getMemorySize()
void calculateRelevency()
double getRelevencyScore()
Dataset getData(TagHistoryQueryProvider backingProvider) throws java.lang.Exception
backingProvider
- java.lang.Exception
boolean eject()