public class EntryRemovingProcessor extends AbstractEntryProcessor implements IdentifiedDataSerializable
| Modifier and Type | Field and Description | 
|---|---|
static EntryRemovingProcessor | 
ENTRY_REMOVING_PROCESSOR  | 
| Constructor and Description | 
|---|
EntryRemovingProcessor()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
getFactoryId()
Returns DataSerializableFactory factory ID for this class. 
 | 
int | 
getId()
Returns type identifier for this class. 
 | 
Object | 
process(Map.Entry 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 
 | 
getBackupProcessorpublic static final EntryRemovingProcessor ENTRY_REMOVING_PROCESSOR
public Object process(Map.Entry 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 the EntryProcessor does not guarantee to modify the entry.process in interface EntryProcessorentry - entry to be processedEntryProcessor, such as
 IMap.executeOnKey()public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOException - if an I/O error occurs. In particular,
                     an IOException may be thrown if the
                     output stream has been closed.public void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOException - if an I/O error occurs. In particular,
                     an IOException may be thrown if the
                     input stream has been closed.Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.