|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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:
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.
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 |
---|
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}.
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |