Package com.google.gerrit.server.account
Interface AccountsUpdate.AccountUpdater
-
- Enclosing class:
- AccountsUpdate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public static interface AccountsUpdate.AccountUpdater
Updater for an account.Allows to read the current state of an account and to prepare updates to it.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static AccountsUpdate.AccountUpdater
fromConsumer(Consumer<InternalAccountUpdate.Builder> consumer)
static AccountsUpdate.AccountUpdater
join(List<AccountsUpdate.AccountUpdater> updaters)
static AccountsUpdate.AccountUpdater
joinConsumers(List<Consumer<InternalAccountUpdate.Builder>> consumers)
void
update(AccountState accountState, InternalAccountUpdate.Builder update)
Prepare updates to an account.
-
-
-
Method Detail
-
update
void update(AccountState accountState, InternalAccountUpdate.Builder update) throws IOException
Prepare updates to an account.Use the provided account only to read the current state of the account. Don't do updates to the account. For updates use the provided account update builder.
- Parameters:
accountState
- the account that is being updatedupdate
- account update builder- Throws:
IOException
-
join
static AccountsUpdate.AccountUpdater join(List<AccountsUpdate.AccountUpdater> updaters)
-
joinConsumers
static AccountsUpdate.AccountUpdater joinConsumers(List<Consumer<InternalAccountUpdate.Builder>> consumers)
-
fromConsumer
static AccountsUpdate.AccountUpdater fromConsumer(Consumer<InternalAccountUpdate.Builder> consumer)
-
-