com.vaadin.signals.impl.
Interface SignalTree.PendingCommit
Enclosing class:
Collection of callbacks representing the possible stages when committing a transaction. The commit is split up into stages to enable a coordinated transaction that includes multiple signal trees.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Updates the tree state so that all pending changes are considered to be submitted.
boolean
Checks whether the pending changes can be committed.
void
Sets the result of all pending changes as rejected.
void
Notifies dependents and updates all result listeners based on the pending changes.
-
Method Details
-
canCommit
boolean canCommit()Checks whether the pending changes can be committed. Committing is possible if all changes would be accepted based on the current tree state.
Returns:
true
if the changes can be committed. -
applyChanges
void applyChanges()Updates the tree state so that all pending changes are considered to be submitted.
-
markAsAborted
void markAsAborted()Sets the result of all pending changes as rejected.
-
publishChanges
void publishChanges()Notifies dependents and updates all result listeners based on the pending changes.
-