public abstract class AbstractLocalClusterWriteOperationData extends AbstractLocalClusterOperationData
DataConflictOperation.OperationType
_aborted, _conflictCause, _pendingOperations, _previousConflictCause, _retriesCount, _spaceProxy
Constructor and Description |
---|
AbstractLocalClusterWriteOperationData(ISpaceProxy spaceProxy,
IEntryPacket entryPacket) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(Transaction transaction)
Executes the operation against the provided
ISpaceProxy with the provided Transaction instance. |
SpaceDocument |
getDataAsDocument() |
Object |
getDataAsObject() |
Object |
getOperationEntry() |
protected abstract int |
getOverrideUpdateModifiers() |
Object |
getSpaceId() |
String |
getUid() |
protected abstract int |
getUpdateModifiersImpl() |
protected abstract boolean |
isConflictError(Throwable error) |
protected boolean |
isOverriden() |
boolean |
isSameOperationType(AbstractLocalClusterOperationData operationData) |
protected void |
overrideImpl() |
void |
setConflictCause(ConflictCause conflictCause) |
boolean |
supportsDataAsDocument() |
boolean |
supportsDataAsObject() |
boolean |
supportsGetSpaceId() |
boolean |
supportsOverride() |
abort, addPendingOperation, convertExceptionToConflict, getConflictCause, getResolutionDescription, getResolveAttempt, getRetriesCount, getTypeDescriptor, hasConflict, incrementResolveAttempt, incrementRetriesCounter, isAborted, isRetryable, override, reset, supportsAbort, supportsBatching, supportsGetTypeDescriptor, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOperationType
getDataSyncOperationType
public AbstractLocalClusterWriteOperationData(ISpaceProxy spaceProxy, IEntryPacket entryPacket)
public boolean execute(Transaction transaction) throws Exception
AbstractLocalClusterOperationData
ISpaceProxy
with the provided Transaction
instance.execute
in class AbstractLocalClusterOperationData
transaction
- The Transaction
to with the operations.Exception
public boolean supportsOverride()
protected void overrideImpl()
overrideImpl
in class AbstractLocalClusterOperationData
public boolean isSameOperationType(AbstractLocalClusterOperationData operationData)
isSameOperationType
in class AbstractLocalClusterOperationData
AbstractLocalClusterOperationData
is of the same class
type.protected abstract boolean isConflictError(Throwable error)
protected abstract int getOverrideUpdateModifiers()
protected abstract int getUpdateModifiersImpl()
public Object getOperationEntry()
public String getUid()
protected boolean isOverriden()
isOverriden
in class AbstractLocalClusterOperationData
public void setConflictCause(ConflictCause conflictCause)
setConflictCause
in class AbstractLocalClusterOperationData
public boolean supportsDataAsDocument()
DataSyncOperation.getDataAsDocument()
operation.public SpaceDocument getDataAsDocument()
DataSyncOperation.supportsDataAsDocument()
return true, otherwise an exception will be thrown.public boolean supportsDataAsObject()
DataSyncOperation.getDataAsObject()
operation.public Object getDataAsObject()
DataSyncOperation.supportsDataAsObject()
return true, otherwise an exception will be thrown.public boolean supportsGetSpaceId()
DataSyncOperation.getSpaceId()
operation.public Object getSpaceId()
Copyright © GigaSpaces.