public class StalenessChecker
extends java.lang.Object
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.
Modifier and Type | Field and Description |
---|---|
static com.google.common.collect.ImmutableSet<java.lang.String> |
FIELDS |
Modifier and Type | Method and Description |
---|---|
boolean |
isStale(Account.Id id) |
static com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.ObjectId> |
parseExternalIdStates(java.lang.Iterable<byte[]> extIdStates) |
public static final com.google.common.collect.ImmutableSet<java.lang.String> FIELDS
public boolean isStale(Account.Id id) throws java.io.IOException
java.io.IOException
public static com.google.common.collect.ListMultimap<org.eclipse.jgit.lib.ObjectId,org.eclipse.jgit.lib.ObjectId> parseExternalIdStates(java.lang.Iterable<byte[]> extIdStates)