@FunctionalInterface
public static interface AccountsUpdate.AccountUpdater
Allows to read the current state of an account and to prepare updates to it.
Modifier and Type | Method and Description |
---|---|
static AccountsUpdate.AccountUpdater |
fromConsumer(java.util.function.Consumer<InternalAccountUpdate.Builder> consumer) |
static AccountsUpdate.AccountUpdater |
join(java.util.List<AccountsUpdate.AccountUpdater> updaters) |
static AccountsUpdate.AccountUpdater |
joinConsumers(java.util.List<java.util.function.Consumer<InternalAccountUpdate.Builder>> consumers) |
void |
update(AccountState accountState,
InternalAccountUpdate.Builder update)
Prepare updates to an account.
|
void update(AccountState accountState, InternalAccountUpdate.Builder update) throws java.io.IOException
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.
accountState
- the account that is being updatedupdate
- account update builderjava.io.IOException
static AccountsUpdate.AccountUpdater join(java.util.List<AccountsUpdate.AccountUpdater> updaters)
static AccountsUpdate.AccountUpdater joinConsumers(java.util.List<java.util.function.Consumer<InternalAccountUpdate.Builder>> consumers)
static AccountsUpdate.AccountUpdater fromConsumer(java.util.function.Consumer<InternalAccountUpdate.Builder> consumer)