public class UpdateEntryProcessor extends AbstractRegionCacheEntryProcessor
EntryProcessor which attempts
 to update a region cache entry| Constructor and Description | 
|---|
UpdateEntryProcessor()  | 
UpdateEntryProcessor(ExpiryMarker lock,
                    Object newValue,
                    Object newVersion,
                    String nextMarkerId,
                    long timestamp)  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getId()
Returns type identifier for this class. 
 | 
Boolean | 
process(Map.Entry<Object,Expirable> entry)
Process the entry without worrying about concurrency. 
 | 
void | 
readData(ObjectDataInput in)
Reads fields from the input stream 
 | 
void | 
writeData(ObjectDataOutput out)
Writes object fields to output stream 
 | 
getBackupProcessor, getFactoryId, processBackuppublic UpdateEntryProcessor()
public UpdateEntryProcessor(ExpiryMarker lock, Object newValue, Object newVersion, String nextMarkerId, long timestamp)
public Boolean process(Map.Entry<Object,Expirable> entry)
EntryProcessorMap.Entry.setValue(V) method of Map.Entry such as:
 
 
 
 Override
        public Object process(Map.Entry entry) {
          Value value = entry.getValue();
          // process and modify value
          // ...
          entry.setValue(value);
          return result;
        }
 
 
 otherwise EntryProcessor does not guarantee to modify the entry.entry - entry to be processedpublic void writeData(ObjectDataOutput out) throws IOException
DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablein - inputIOExceptionpublic int getId()
IdentifiedDataSerializableCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.