|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataConflictOperation
Provides an interface for handling a conflicting data operation.
Conflicting operations can be resolved using the abort()
and override()
methods.
It is important to understand that override()
acts differently for each DataConflictOperation.OperationType
(refer to ConflictCause
implementations for more information).
Nested Class Summary | |
---|---|
static class |
DataConflictOperation.OperationType
Operation type enum. |
Method Summary | |
---|---|
void |
abort()
Determines that the operation will be aborted. |
ConflictCause |
getConflictCause()
|
Object |
getOperationEntry()
|
DataConflictOperation.OperationType |
getOperationType()
|
int |
getResolveAttempt()
|
String |
getUid()
|
boolean |
hasConflict()
|
void |
override()
Determines that the operation will be overridden. |
boolean |
supportsAbort()
|
boolean |
supportsOverride()
|
Method Detail |
---|
DataConflictOperation.OperationType getOperationType()
ConflictCause getConflictCause()
ConflictCause
instance representing the conflict.boolean hasConflict()
Object getOperationEntry()
String getUid()
void abort()
void override()
It is possible to change the operation's entry data using the getOperationEntry()
method.
EntryAlreadyInSpaceConflict
will turn to an update operation.EntryNotInSpaceConflict
will turn to a write operation.EntryVersionConflict
will overwrite the entry in the target space.EntryLockedUnderTransactionConflict
will be retried.
boolean supportsOverride()
boolean supportsAbort()
int getResolveAttempt()
|
GigaSpaces XAP 8.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |