public interface DataConflict
A data conflict is a conflict caused by write/update/take operations.
The relevant conflicts are:
EntryAlreadyInSpaceConflict
- An attempt to write a new entry which already exists.
EntryNotInSpaceConflict
- An attempt to update an existing entry which doesn't exist.
EntryLockedUnderTransactionConflict
- An attempt to update an entry which is locked under transaction.
EntryVersionConflict
- An attempt to update an entry with a newer/older version than the existing one.
Modifier and Type | Method and Description |
---|---|
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. |
DataConflictOperation[] getOperations()
DataConflict
instance represents a transaction conflict,
all of the operation under the transaction are returned, even operations that did not cause any conflict.void abortAll()
DataConflict
will be aborted.
This is equivalent to iterating over all the operations and calling DataConflictOperation.abort()
on each one.void overrideAll()
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}.
Copyright © GigaSpaces.