public class LocalClusterChangeOperationData extends AbstractLocalClusterOperationData implements DataSyncChangeSet
DataConflictOperation.OperationType
_aborted, _conflictCause, _pendingOperations, _previousConflictCause, _retriesCount, _spaceProxy
Constructor and Description |
---|
LocalClusterChangeOperationData(ISpaceProxy spaceProxy,
ITypeDesc typeDescriptor,
String uid,
Object id,
int version,
int previousVersion,
int routingHash,
long timeToLive,
Collection<SpaceEntryMutator> mutators) |
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() |
DataSyncOperationType |
getDataSyncOperationType() |
Object |
getId() |
Object |
getOperationEntry()
Deprecated.
|
Collection |
getOperations() |
DataConflictOperation.OperationType |
getOperationType()
Deprecated.
|
Object |
getSpaceId() |
long |
getTimeToLive() |
String |
getUid() |
int |
getVersion() |
boolean |
supportsBatching() |
boolean |
supportsDataAsDocument() |
boolean |
supportsDataAsObject() |
boolean |
supportsGetSpaceId() |
boolean |
supportsOverride() |
abort, addPendingOperation, convertExceptionToConflict, getConflictCause, getResolutionDescription, getResolveAttempt, getRetriesCount, getTypeDescriptor, hasConflict, incrementResolveAttempt, incrementRetriesCounter, isAborted, isOverriden, isRetryable, isSameOperationType, override, overrideImpl, reset, setConflictCause, supportsAbort, supportsGetTypeDescriptor, toString
public LocalClusterChangeOperationData(ISpaceProxy spaceProxy, ITypeDesc typeDescriptor, String uid, Object id, int version, int previousVersion, int routingHash, long timeToLive, Collection<SpaceEntryMutator> mutators)
@Deprecated public DataConflictOperation.OperationType getOperationType()
getOperationType
in interface DataConflictOperation
@Deprecated public Object getOperationEntry()
getOperationEntry
in interface DataConflictOperation
public boolean supportsOverride()
supportsOverride
in interface DataConflictOperation
public String getUid()
getUid
in interface DataSyncOperation
public DataSyncOperationType getDataSyncOperationType()
getDataSyncOperationType
in interface DataSyncOperation
public Object getDataAsObject()
getDataAsObject
in interface DataSyncOperation
DataSyncOperation.supportsDataAsObject()
return true, otherwise an exception will be thrown.public SpaceDocument getDataAsDocument()
getDataAsDocument
in interface DataSyncOperation
DataSyncOperation.supportsDataAsDocument()
return true, otherwise an exception will be thrown.public boolean supportsDataAsObject()
supportsDataAsObject
in interface DataSyncOperation
DataSyncOperation.getDataAsObject()
operation.public boolean supportsDataAsDocument()
supportsDataAsDocument
in interface DataSyncOperation
DataSyncOperation.getDataAsDocument()
operation.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 supportsBatching()
supportsBatching
in class AbstractLocalClusterOperationData
public Collection getOperations()
getOperations
in interface DataSyncChangeSet
public Object getId()
getId
in interface DataSyncChangeSet
public int getVersion()
getVersion
in interface DataSyncChangeSet
public long getTimeToLive()
getTimeToLive
in interface DataSyncChangeSet
public boolean supportsGetSpaceId()
supportsGetSpaceId
in interface DataSyncOperation
DataSyncOperation.getSpaceId()
operation.public Object getSpaceId()
getSpaceId
in interface DataSyncOperation
Copyright © GigaSpaces.