Class AccountIndexerImpl
java.lang.Object
com.google.gerrit.server.index.account.AccountIndexerImpl
- All Implemented Interfaces:
AccountIndexer
Implementation for indexing a Gerrit account. The account will be loaded from
AccountCache
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Factory for creating an instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
index
(Account.Id id) Synchronously index an account.boolean
Synchronously reindex an account if it is stale.
-
Method Details
-
index
Description copied from interface:AccountIndexer
Synchronously index an account.- Specified by:
index
in interfaceAccountIndexer
- Parameters:
id
- account id to index.
-
reindexIfStale
Description copied from interface:AccountIndexer
Synchronously reindex an account if it is stale.- Specified by:
reindexIfStale
in interfaceAccountIndexer
- Parameters:
id
- account id to index.- Returns:
- whether the account was reindexed
-