Interface DataConflict

All Known Implementing Classes:
LocalClusterReplicationDataConflict

public interface DataConflict
Provides an interface for resolving data conflicts.

A data conflict is a conflict caused by write/update/take operations.
The relevant conflicts are:

Since:
8.0.3
Author:
eitany
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Indicates that all of the operations associated with the DataConflict will be aborted.
    Gets all the conflicted operations, for a non transactional conflict, this will contain a single operation that causes the conflict.
    void
    Indicates that all of the operations associated with the DataConflict will be overridden.
  • Method Details

    • getOperations

      DataConflictOperation[] getOperations()
      Gets all the conflicted operations, for a non transactional conflict, this will contain a single operation that causes the conflict. If the DataConflict instance represents a transaction conflict, all of the operation under the transaction are returned, even operations that did not cause any conflict.
      Returns:
      The operations associated with the conflict.
    • abortAll

      void abortAll()
      Indicates that all of the operations associated with the DataConflict will be aborted. This is equivalent to iterating over all the operations and calling DataConflictOperation.abort() on each one.
    • overrideAll

      void overrideAll()
      Indicates that all of the operations associated with the DataConflict will be overridden. This is equivalent to iterating over all the operations and calling DataConflictOperation.override() on each one.

      Each operation has a different logic when it gets overridden depends on the conflict that occurred (refer to DataConflictOperation.override() for more information}.