public interface ChangeOperation
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
}
//...
}
Modifier and Type | Method and Description |
---|---|
String |
getName() |
String getName()
Copyright © GigaSpaces.