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
|
getBackupProcessor
public static final EntryRemovingProcessor ENTRY_REMOVING_PROCESSOR
public Object process(Map.Entry entry)
EntryProcessor
Map.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.process
in interface EntryProcessor
entry
- entry to be processedpublic int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.