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
FieldsModifier and TypeFieldDescriptionstatic final CachedPreferences
Static member to be returned when there is no default config. -
Method Summary
Modifier and TypeMethodDescriptionget()
Returns a cached instance ofCachedPreferences
.get
(org.eclipse.jgit.lib.ObjectId rev) Returns a cached instance ofCachedPreferences
at the specified revision.
-
Field Details
-
EMPTY
Static member to be returned when there is no default config. This prevents re-instantiating manyCachedPreferences
in this case.
-
-
Method Details
-
get
CachedPreferences get()Returns a cached instance ofCachedPreferences
. -
get
Returns a cached instance ofCachedPreferences
at the specified revision.
-