com.gigaspaces.sync.change
Interface ChangeOperation
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
IncrementOperation
AddToCollectionOperation
AddAllToCollectionOperation
RemoveFromCollectionOperation
PutInMapOperation
RemoveFromMapOperation
SetOperation
UnsetOperation
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
getName
String getName()
- Returns:
- the name of the operation.
Copyright © GigaSpaces.