Package com.gigaspaces.sync.change
Interface ChangeOperation
- All Known Implementing Classes:
AddAllToCollectionSpaceEntryMutator,AddToCollectionSpaceEntryMutator,CustomChangeOperation,IncrementSpaceEntryMutator,PutInMapSpaceEntryMutator,RemoveFromCollectionSpaceEntryMutator,RemoveFromMapSpaceEntryMutator,SetValueSpaceEntryMutator,SpaceEntryMutator,SpaceEntryPathMutator,UnsetValueSpaceEntryMutator
public interface ChangeOperation
A single change applied on a
ChangeSet when using a change operation on an object. See
the following operations to obtain the relevant constant values in order to extract the data from
the change operation
IncrementOperationAddToCollectionOperationAddAllToCollectionOperationRemoveFromCollectionOperationPutInMapOperationRemoveFromMapOperationSetOperationUnsetOperation
DataSyncChangeSet dataSyncChangeSet = ChangeDataSyncOperation.getChangeSet(dataSyncOperation);
Collection operations = dataSyncChangeSet.getOperations();
for(ChangeOperation operation : operations){
if (SetOperation.NAME.equals(operation.getName()){
String path = SetOperation.getPath(operation);
Object value = SetOperation.getValue(operation);
// ... do something with the path and value
}
//...
}
- Since:
- 9.5
- Author:
- eitany
-
Method Summary
-
Method Details
-
getName
String getName()- Returns:
- the name of the operation.
-