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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull com.google.common.collect.ImmutableSet<T>
getCacheHits()
The result items that were found in the cache.@NotNull com.google.common.collect.ImmutableSet<T>
getCacheMisses()
The result items that were not found in the cache and had to be loaded from database.@NotNull com.google.common.collect.ImmutableSet<T>
getResults()
All items found either in the cache or that had to be loaded from database.@NotNull Stream<T>
stream()
Stream over all results exposed viagetResults()
-
-
-
Method Detail
-
getCacheHits
@NotNull @NotNull com.google.common.collect.ImmutableSet<T> getCacheHits()
The result items that were found in the cache.- Returns:
- The result items that were found in the cache.
-
getCacheMisses
@NotNull @NotNull com.google.common.collect.ImmutableSet<T> 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
@NotNull @NotNull com.google.common.collect.ImmutableSet<T> 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
@NotNull @NotNull Stream<T> stream()
Stream over all results exposed viagetResults()
- Returns:
- A stream over all results.
-
-