Class BulkInsertOperation<T extends Signal<?>>

java.lang.Object
com.vaadin.flow.signals.operations.SignalOperation<Void>
com.vaadin.flow.signals.operations.BulkInsertOperation<T>
Type Parameters:
T - the type of the newly inserted signals
All Implemented Interfaces:
Serializable

public class BulkInsertOperation<T extends Signal<?>> extends SignalOperation<Void>
An operation that inserts multiple child signals into a list as a single atomic batch. Unlike using individual InsertOperation instances, this operation tracks the entire batch with a single SignalOperation.result() future.
See Also:
  • Constructor Details

    • BulkInsertOperation

      public BulkInsertOperation(List<T> signals)
      Creates a new bulk insert operation with the given list of inserted signal instances.
      Parameters:
      signals - an unmodifiable list of the newly inserted signal instances, not null
  • Method Details

    • signals

      public List<T> signals()
      Gets the list of newly inserted signal instances. The instances can be used immediately even in cases where the result of the operation is not immediately confirmed.
      Returns:
      an unmodifiable list of the newly inserted signal instances, not null