Class LocalClusterChangeOperationData
java.lang.Object
com.gigaspaces.internal.cluster.node.impl.gateway.sink.AbstractLocalClusterOperationData
com.gigaspaces.internal.cluster.node.impl.gateway.sink.LocalClusterChangeOperationData
- All Implemented Interfaces:
DataConflictOperation,DataSyncChangeSet,DataSyncOperation
public class LocalClusterChangeOperationData
extends AbstractLocalClusterOperationData
implements DataSyncChangeSet
-
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
ConstructorsConstructorDescriptionLocalClusterChangeOperationData(ISpaceProxy spaceProxy, ITypeDesc typeDescriptor, String uid, Object id, int version, int previousVersion, int routingHash, long timeToLive, Collection<SpaceEntryMutator> mutators) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(Transaction transaction) Executes the operation against the providedISpaceProxywith the providedTransactioninstance.getId()Deprecated.Deprecated.longgetUid()intbooleanbooleanbooleanbooleanbooleanMethods 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, isSameOperationType, override, overrideImpl, reset, setConflictCause, supportsAbort, supportsGetTypeDescriptor, toString
-
Constructor Details
-
LocalClusterChangeOperationData
public LocalClusterChangeOperationData(ISpaceProxy spaceProxy, ITypeDesc typeDescriptor, String uid, Object id, int version, int previousVersion, int routingHash, long timeToLive, Collection<SpaceEntryMutator> mutators)
-
-
Method Details
-
getOperationType
Deprecated.- Specified by:
getOperationTypein interfaceDataConflictOperation- Returns:
- The operation type.
-
getOperationEntry
Deprecated.- Specified by:
getOperationEntryin interfaceDataConflictOperation- Returns:
- The user entry the operation had a conflict for.
-
supportsOverride
public boolean supportsOverride()- Specified by:
supportsOverridein interfaceDataConflictOperation- Returns:
- true if overriding the operation is supported, otherwise false.
-
getUid
- Specified by:
getUidin interfaceDataSyncOperation- Returns:
- The operation's data UID.
-
getDataSyncOperationType
- Specified by:
getDataSyncOperationTypein interfaceDataSyncOperation- Returns:
- the operation type.
-
getDataAsObject
- Specified by:
getDataAsObjectin interfaceDataSyncOperation- 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.
-
getDataAsDocument
- Specified by:
getDataAsDocumentin interfaceDataSyncOperation- 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()- Specified by:
supportsDataAsObjectin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsObject()operation.
-
supportsDataAsDocument
public boolean supportsDataAsDocument()- Specified by:
supportsDataAsDocumentin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getDataAsDocument()operation.
-
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
-
supportsBatching
public boolean supportsBatching()- Specified by:
supportsBatchingin classAbstractLocalClusterOperationData- Returns:
- true if the operation supports batching.
-
getOperations
- Specified by:
getOperationsin interfaceDataSyncChangeSet- Returns:
- the change operations.
-
getId
- Specified by:
getIdin interfaceDataSyncChangeSet- Returns:
- the id of the object which was changed.
-
getVersion
public int getVersion()- Specified by:
getVersionin interfaceDataSyncChangeSet- Returns:
- the version of the object after the change was applied.
-
getTimeToLive
public long getTimeToLive()- Specified by:
getTimeToLivein interfaceDataSyncChangeSet- Returns:
- the remaining time to live of the object after the change was applied.
-
supportsGetSpaceId
public boolean supportsGetSpaceId()- Specified by:
supportsGetSpaceIdin interfaceDataSyncOperation- Returns:
- whether this data operation support the
DataSyncOperation.getSpaceId()operation.
-
getSpaceId
- Specified by:
getSpaceIdin interfaceDataSyncOperation- Returns:
- The operation's data Id.
-