Package com.atlassian.bamboo.plan.cache
Interface ImmutableCacheResults<T>
- Type Parameters:
T
- - the type being stored by this class
- All Known Implementing Classes:
ImmutableCacheResultsImpl
public interface ImmutableCacheResults<T>
Encapsulates results from cache, offering additional information about cache misses and hits.
- Since:
- 9.5
-
Method Summary
Modifier and TypeMethodDescription@NotNull com.google.common.collect.ImmutableSet<T>
The result items that were found in the cache.@NotNull com.google.common.collect.ImmutableSet<T>
The result items that were not found in the cache and had to be loaded from database.@NotNull com.google.common.collect.ImmutableSet<T>
All items found either in the cache or that had to be loaded from database.stream()
Stream over all results exposed viagetResults()
-
Method Details
-
getCacheHits
The result items that were found in the cache.- Returns:
- The result items that were found in the cache.
-
getCacheMisses
The result items that were not found in the cache and had to be loaded from database.- Returns:
- The result items that were not found in the cache and had to be loaded from database.
-
getResults
All items found either in the cache or that had to be loaded from database.- Returns:
- All items found either in the cache or that had to be loaded from database.
-
stream
Stream over all results exposed viagetResults()
- Returns:
- A stream over all results.
-