Class LocalClusterRemoveByUIDOperationData
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterOperationData
com.gigaspaces.internal.cluster.node.impl.gateway.sink.LocalClusterRemoveByUIDOperationData
- All Implemented Interfaces:
DataConflictOperation,DataSyncOperation
- Direct Known Subclasses:
LocalClusterRemoveOperationData
Operation executer for a remove replication sink gateway operation against a local cluster.
The remove operation is made by using the removed entries Uids.
- 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
ConstructorsConstructorDescriptionLocalClusterRemoveByUIDOperationData(ISpaceProxy spaceProxy, String uid, ITypeDesc typeDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(Transaction transaction) Executes the operation against the providedISpaceProxywith the providedTransactioninstance.getUid()booleanisSameOperationType(AbstractLocalClusterOperationData operationData) booleanbooleanbooleanbooleanbooleanMethods inherited from class com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterOperationData
abort, addPendingOperation, convertExceptionToConflict, getConflictCause, getResolutionDescription, getResolveAttempt, getRetriesCount, getTypeDescriptor, hasConflict, incrementResolveAttempt, incrementRetriesCounter, isAborted, isOverriden, isRetryable, override, overrideImpl, reset, setConflictCause, supportsAbort, supportsGetTypeDescriptor, toString
-
Constructor Details
-
LocalClusterRemoveByUIDOperationData
public LocalClusterRemoveByUIDOperationData(ISpaceProxy spaceProxy, String uid, ITypeDesc typeDescriptor)
-
-
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
-
isSameOperationType
- Overrides:
isSameOperationTypein classAbstractLocalClusterOperationData- Returns:
- true if the provided
AbstractLocalClusterOperationDatais of the same class type.
-
supportsBatching
public boolean supportsBatching()- Specified by:
supportsBatchingin classAbstractLocalClusterOperationData- Returns:
- true if the operation supports batching.
-
getOperationType
- Returns:
- The operation type.
-
getDataSyncOperationType
- Returns:
- the operation type.
-
getOperationEntry
- Returns:
- The user entry the operation had a conflict for.
-
getUid
- Returns:
- The operation's data UID.
-
supportsOverride
public boolean supportsOverride()- Returns:
- true if overriding the operation is supported, otherwise false.
-
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.
-