com.vaadin.signals.impl.
Class MutableTreeRevision
A tree revision that can be mutated by applying signal commands.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new mutable tree revision as a copy of the provided base revision.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(SignalCommand command, BiConsumer<Id, CommandResult> resultCollector) Applies a single command and passes the results to the provided handler.
void
apply
(List<SignalCommand> commands) Applies a sequence of commands and ignores the results.
applyAndGetResults
(List<SignalCommand> commands) Applies a sequence of commands and collects the results to a map.
Methods inherited from class com.vaadin.signals.impl.TreeRevision
assertValidTree, data, nodes, originalInserts, ownerId
-
Constructor Details
-
MutableTreeRevision
Creates a new mutable tree revision as a copy of the provided base revision.
Parameters:
base
- the base revision to copy, notnull
-
-
Method Details
-
applyAndGetResults
Applies a sequence of commands and collects the results to a map.
Parameters:
commands
- the list of commands to apply, notnull
Returns:
a map from command id to operation results, not
null
-
apply
Applies a sequence of commands and ignores the results.
Parameters:
commands
- the list of commands to apply, notnull
-
apply
Applies a single command and passes the results to the provided handler. Note that the handler will be invoked exactly once for most types of commands but it will be invoked multiple times for transactions.
Parameters:
command
- the command to apply, notnull
resultCollector
- callback to collect command results, ornull
to ignore results
-