public class NestedGroupsCacheProvider extends Object
CachedMultipleGroupsProvider| Constructor and Description |
|---|
NestedGroupsCacheProvider(long expiryMs,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
static Optional<NestedGroupsCacheProvider> |
createFromSystemProperties()
Returns provider configured according to system properties or
Optional.empty(), if not configured. |
protected com.google.common.cache.Cache<String,Group> |
getGroupsCache(long directoryId,
GroupType type)
Returns cache for a given set of parameters.
|
protected com.google.common.cache.Cache<String,String[]> |
getSubgroupsCache(long directoryId,
boolean isChildrenQuery,
GroupType type)
Returns cache for a given set of parameters.
|
public NestedGroupsCacheProvider(long expiryMs,
int maxSize)
protected com.google.common.cache.Cache<String,String[]> getSubgroupsCache(long directoryId, boolean isChildrenQuery, GroupType type)
protected com.google.common.cache.Cache<String,Group> getGroupsCache(long directoryId, GroupType type)
getSubgroupsCache(long, boolean, GroupType) expiration times are extended by
GROUPS_CACHE_MARGIN_MS to make sure that values that are pointed at are not expired.public static Optional<NestedGroupsCacheProvider> createFromSystemProperties()
Optional.empty(), if not configured.
Please note that the cache is experimental and that's why it's disabled by default.Copyright © 2024 Atlassian. All rights reserved.