Class StalenessChecker
- java.lang.Object
-
- com.google.gerrit.server.index.account.StalenessChecker
-
public class StalenessChecker extends Object
Checks if documents in the account index are stale.An index document is considered stale if the stored ref state differs from the SHA1 of the user branch or if the stored external ID states don't match with the external IDs of the account from the refs/meta/external-ids branch.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isStale(Account.Id id)
static com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.ObjectId>
parseExternalIdStates(Iterable<byte[]> extIdStates)
-
-
-
Method Detail
-
isStale
public boolean isStale(Account.Id id) throws IOException
- Throws:
IOException
-
parseExternalIdStates
public static com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.ObjectId> parseExternalIdStates(Iterable<byte[]> extIdStates)
-
-