public class EntryRemovingProcessor extends AbstractEntryProcessor
Modifier and Type | Field and Description |
---|---|
static EntryRemovingProcessor |
ENTRY_REMOVING_PROCESSOR |
Constructor and Description |
---|
EntryRemovingProcessor() |
Modifier and Type | Method and Description |
---|---|
Object |
process(Map.Entry entry)
Process the entry without worrying about concurrency.
|
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.entry
- entry to be processedCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.