GigaSpaces XAP 9.5 API

com.gigaspaces.sync.change
Interface ChangeOperation


public interface ChangeOperation

A single change applied on a ChangeSet when using the executing 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

Method Summary
 String getName()
           
 

Method Detail

getName

String getName()
Returns:
the name of the operation.

GigaSpaces XAP 9.5 API

Copyright © GigaSpaces.