Package com.google.gerrit.server.account
Interface AccountsUpdate.ConfigureDeltaFromState
- 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.
Interface for updating the account delta, providing the current state.
Account updates are commonly performed by evaluating the current account state and creating a delta to be applied to it in a later step. This is done by implementing this interface.
If the current account state is not needed, use AccountsUpdate.ConfigureStatelessDelta
instead.
Alternatively, if you need to perform extra storage reads/writes during the update, use AccountsUpdate.ConfigureDeltaFromStateAndContext
.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(AccountState accountState, AccountDelta.Builder delta) Receives the currentAccountState
(which is immutable) and configures anAccountDelta.Builder
with changes to the account.
-
Method Details
-
configure
Receives the currentAccountState
(which is immutable) and configures anAccountDelta.Builder
with changes to the account.- Parameters:
accountState
- the state of the account that is being updateddelta
- the changes to be applied- Throws:
IOException
-