GigaSpaces XAP 10.0.1 API

com.gigaspaces.cluster.replication.gateway.conflict
Interface DataConflict


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
 void abortAll()
          Indicates that all of the operations associated with the DataConflict will be aborted.
 DataConflictOperation[] getOperations()
          Gets all the conflicted operations, for a non transactional conflict, this will contain a single operation that causes the conflict.
 void overrideAll()
          Indicates that all of the operations associated with the DataConflict will be overridden.
 

Method Detail

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}.


GigaSpaces XAP 10.0.1 API

Copyright © GigaSpaces.