Interface DrUpdateHandler

All Known Implementing Classes:
DrUpdateHandlerImpl
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface DrUpdateHandler
DR update handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    applyUpdates(org.apache.ignite.table.QualifiedName cacheName, List<DrUpdate> rowUpdates)
    Applies row updates that are never cancelled.
    applyUpdates(org.apache.ignite.table.QualifiedName cacheName, List<DrUpdate> rowUpdates, org.apache.ignite.lang.CancellationToken cancellationToken)
    Applies row updates.
  • Method Details

    • applyUpdates

      CompletableFuture<Void> applyUpdates(org.apache.ignite.table.QualifiedName cacheName, List<DrUpdate> rowUpdates, org.apache.ignite.lang.CancellationToken cancellationToken)
      Applies row updates.
      Parameters:
      cacheName - Target table name.
      rowUpdates - Updates to apply.
      cancellationToken - Signals that the batch is abandoned, because the connection it arrived on is gone. Implementations must stop retrying and complete the returned future promptly, so that the batch is released.
      Returns:
      Future that will be completed once all updates got processed.
    • applyUpdates

      @TestOnly default CompletableFuture<Void> applyUpdates(org.apache.ignite.table.QualifiedName cacheName, List<DrUpdate> rowUpdates)
      Applies row updates that are never cancelled.