Class AccountIndexerImpl
- java.lang.Object
-
- com.google.gerrit.server.index.account.AccountIndexerImpl
-
- All Implemented Interfaces:
AccountIndexer
public class AccountIndexerImpl extends Object implements AccountIndexer
Implementation for indexing a Gerrit account. The account will be loaded fromAccountCache
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AccountIndexerImpl.Factory
Factory for creating an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
index(Account.Id id)
Synchronously index an account.boolean
reindexIfStale(Account.Id id)
Synchronously reindex an account if it is stale.
-
-
-
Method Detail
-
index
public void index(Account.Id id)
Description copied from interface:AccountIndexer
Synchronously index an account.- Specified by:
index
in interfaceAccountIndexer
- Parameters:
id
- account id to index.
-
reindexIfStale
public boolean reindexIfStale(Account.Id id)
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
-
-