Package com.google.gerrit.server.account
Interface AccountsUpdate.ConfigureDeltaFromStateAndContext
- 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 and storage accessors.
Account updates which need to perform extra storage reads/writes during the update, should use this interface.
If storage accessors are not needed, use AccountsUpdate.ConfigureStatelessDelta
or AccountsUpdate.ConfigureDeltaFromState
instead.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(AccountsUpdate.InUpdateStorageAccessors inUpdateStorageAccessors, AccountState accountState, AccountDelta.Builder delta) ReceivesAccountsUpdate.InUpdateStorageAccessors
for reading/modifying data on the respective storage system, as well as the currentAccountState
(which is immutable).
-
Method Details
-
configure
void configure(AccountsUpdate.InUpdateStorageAccessors inUpdateStorageAccessors, AccountState accountState, AccountDelta.Builder delta) throws IOException ReceivesAccountsUpdate.InUpdateStorageAccessors
for reading/modifying data on the respective storage system, as well as the currentAccountState
(which is immutable). Configures anAccountDelta.Builder
with changes to the account.- Parameters:
inUpdateStorageAccessors
- storage accessor which have the context of the update (e.g., use the same storage system as the calling updater)accountState
- the state of the account that is being updateddelta
- the changes to be applied- Throws:
IOException
- See Also:
-