public interface DataConflictOperation extends DataSyncOperation
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).
Modifier and Type | Interface and Description |
---|---|
static class |
DataConflictOperation.OperationType
Deprecated.
since 9.0.1 -
DataSyncOperationType . |
Modifier and Type | Method and Description |
---|---|
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() |
getDataAsDocument, getDataAsObject, getDataSyncOperationType, getSpaceId, getTypeDescriptor, getUid, supportsDataAsDocument, supportsDataAsObject, supportsGetSpaceId, supportsGetTypeDescriptor
@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()
Copyright © GigaSpaces.