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