Package com.google.gerrit.server.config
Class CacheResource
- java.lang.Object
-
- com.google.gerrit.server.config.ConfigResource
-
- com.google.gerrit.server.config.CacheResource
-
- All Implemented Interfaces:
RestResource
public class CacheResource extends ConfigResource
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.restapi.RestResource
RestResource.HasETag, RestResource.HasLastModified
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.inject.TypeLiteral<RestView<CacheResource>>
CACHE_KIND
-
Fields inherited from class com.google.gerrit.server.config.ConfigResource
CONFIG_KIND, DEFAULT_CACHE_CONTROL
-
-
Constructor Summary
Constructors Constructor Description CacheResource(String pluginName, String cacheName, com.google.common.cache.Cache<?,?> cache)
CacheResource(String pluginName, String cacheName, com.google.inject.Provider<com.google.common.cache.Cache<?,?>> cacheProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
cacheNameOf(String plugin, String name)
com.google.common.cache.Cache<?,?>
getCache()
String
getName()
-
-
-
Field Detail
-
CACHE_KIND
public static final com.google.inject.TypeLiteral<RestView<CacheResource>> CACHE_KIND
-
-