Package com.google.gerrit.server.notedb
Class ChangeNotesState
- java.lang.Object
-
- com.google.gerrit.server.notedb.ChangeNotesState
-
public abstract class ChangeNotesState extends Object
Immutable state associated with a change meta ref at a given commit.One instance is the output of a single
ChangeNotesParser
, and contains types required to support public methods onChangeNotes
. It is intended to be cached in-process.When new fields are added to the
ChangeNotesState
,ChangeNotesCache.Weigher.weigh(com.google.gerrit.server.notedb.ChangeNotesCache.Key, com.google.gerrit.server.notedb.ChangeNotesState)
should be updated.Note that
ChangeNotes
contains more than just a singleChangeNoteState
, such as per-draft information, so that class is not cached directly.