Package com.google.gerrit.server.config
Interface DefaultPreferencesCache
-
- All Known Implementing Classes:
DefaultPreferencesCacheImpl
public interface DefaultPreferencesCache
Cache for Gerrit's default preferences (general, diff edit).
-
-
Field Summary
Fields Modifier and Type Field Description static CachedPreferences
EMPTY
Static member to be returned when there is no default config.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CachedPreferences
get()
Returns a cached instance ofCachedPreferences
.CachedPreferences
get(org.eclipse.jgit.lib.ObjectId rev)
Returns a cached instance ofCachedPreferences
at the specified revision.
-
-
-
Field Detail
-
EMPTY
static final CachedPreferences EMPTY
Static member to be returned when there is no default config. This prevents re-instantiating manyCachedPreferences
in this case.
-
-
Method Detail
-
get
CachedPreferences get()
Returns a cached instance ofCachedPreferences
.
-
get
CachedPreferences get(org.eclipse.jgit.lib.ObjectId rev)
Returns a cached instance ofCachedPreferences
at the specified revision.
-
-