|
GigaSpaces XAP 9.7.2 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
Deprecated. since 9.0.1 - DataSyncOperationType . |
Method Summary | |
---|---|
void |
abort()
Determines that the operation will be aborted. |
ConflictCause |
getConflictCause()
|
Object |
getOperationEntry()
Deprecated. since 9.0.1 - use DataSyncOperation.getDataAsDocument() or DataSyncOperation.getDataAsObject() instead. |
DataConflictOperation.OperationType |
getOperationType()
Deprecated. since 9.0.1 - use DataSyncOperation.getDataSyncOperationType() instead. |
int |
getResolveAttempt()
|
boolean |
hasConflict()
|
void |
override()
Determines that the operation will be overridden. |
boolean |
supportsAbort()
|
boolean |
supportsOverride()
|
Methods inherited from interface com.gigaspaces.sync.DataSyncOperation |
---|
getDataAsDocument, getDataAsObject, getDataSyncOperationType, getSpaceId, getTypeDescriptor, getUid, supportsDataAsDocument, supportsDataAsObject, supportsGetSpaceId, supportsGetTypeDescriptor |
Method Detail |
---|
@Deprecated DataConflictOperation.OperationType getOperationType()
DataSyncOperation.getDataSyncOperationType()
instead.
ConflictCause getConflictCause()
ConflictCause
instance representing the conflict.boolean hasConflict()
@Deprecated Object getOperationEntry()
DataSyncOperation.getDataAsDocument()
or DataSyncOperation.getDataAsObject()
instead.
void abort()
supportsAbort()
returns true.
void override()
supportsOverride()
returns true.
It is possible to change the operation's entry data using the DataSyncOperation.getDataAsObject()
or DataSyncOperation.getDataAsDocument()
methods.
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 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |