Class AbstractLocalClusterWriteOperationData
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterOperationData
com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterWriteOperationData
- All Implemented Interfaces:
DataConflictOperation,DataSyncOperation
- Direct Known Subclasses:
LocalClusterUpdateOperationData,LocalClusterWriteOperationData
public abstract class AbstractLocalClusterWriteOperationData
extends AbstractLocalClusterOperationData
- Since:
- 8.0.3
- Author:
- idan
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.gigaspaces.cluster.replication.gateway.conflict.DataConflictOperation
DataConflictOperation.OperationType -
Field Summary
Fields inherited from class com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterOperationData
_aborted, _conflictCause, _pendingOperations, _previousConflictCause, _retriesCount, _spaceProxy -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLocalClusterWriteOperationData(ISpaceProxy spaceProxy, IEntryPacket entryPacket) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(Transaction transaction) Executes the operation against the providedISpaceProxywith the providedTransactioninstance.protected abstract intgetUid()protected abstract intprotected abstract booleanisConflictError(Throwable error) protected booleanbooleanisSameOperationType(AbstractLocalClusterOperationData operationData) protected voidvoidsetConflictCause(ConflictCause conflictCause) booleanbooleanbooleanbooleanMethods inherited from class com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterOperationData
abort, addPendingOperation, convertExceptionToConflict, getConflictCause, getResolutionDescription, getResolveAttempt, getRetriesCount, getTypeDescriptor, hasConflict, incrementResolveAttempt, incrementRetriesCounter, isAborted, isRetryable, override, reset, supportsAbort, supportsBatching, supportsGetTypeDescriptor, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.gigaspaces.cluster.replication.gateway.conflict.DataConflictOperation
getOperationTypeMethods inherited from interface com.gigaspaces.sync.DataSyncOperation
getDataSyncOperationType
-
Constructor Details
-
AbstractLocalClusterWriteOperationData
-
-
Method Details
-
execute
Description copied from class:AbstractLocalClusterOperationDataExecutes the operation against the providedISpaceProxywith the providedTransactioninstance.- Specified by:
executein classAbstractLocalClusterOperationData- Parameters:
transaction- TheTransactionto with the operations.- Throws:
Exception
-
supportsOverride
public boolean supportsOverride()- Returns:
- true if overriding the operation is supported, otherwise false.
-
overrideImpl
protected void overrideImpl()- Overrides:
overrideImplin classAbstractLocalClusterOperationData
-
isSameOperationType
- Overrides:
isSameOperationTypein classAbstractLocalClusterOperationData- Returns:
- true if the provided
AbstractLocalClusterOperationDatais of the same class type.
-
isConflictError
-
getOverrideUpdateModifiers
protected abstract int getOverrideUpdateModifiers() -
getUpdateModifiersImpl
protected abstract int getUpdateModifiersImpl() -
getOperationEntry
- Returns:
- The user entry the operation had a conflict for.
-
getUid
- Returns:
- The operation's data UID.
-
isOverriden
protected boolean isOverriden()- Overrides:
isOverridenin classAbstractLocalClusterOperationData
-
setConflictCause
- Overrides:
setConflictCausein classAbstractLocalClusterOperationData
-
supportsDataAsDocument
public boolean supportsDataAsDocument()- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsDocument()operation.
-
getDataAsDocument
- Returns:
- the operation data as space document, this can only be used if
DataSyncOperation.supportsDataAsDocument()return true, otherwise an exception will be thrown.
-
supportsDataAsObject
public boolean supportsDataAsObject()- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsObject()operation.
-
getDataAsObject
- Returns:
- the operation data as object (i.e pojo), this can only be used if
DataSyncOperation.supportsDataAsObject()return true, otherwise an exception will be thrown.
-
supportsGetSpaceId
public boolean supportsGetSpaceId()- Returns:
- whether this data operation support the
DataSyncOperation.getSpaceId()operation.
-
getSpaceId
- Returns:
- The operation's data Id.
-