public class DestroySessionEntryProcessor extends AbstractWebDataEntryProcessor<Integer>
Boolean.TRUE
or Boolean.FALSE
to
indicate whether the reference count has reached zero. If the reference count reaches zero, the session
ID is removed by this processor to reduce network calls.Constructor and Description |
---|
DestroySessionEntryProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns type identifier for this class.
|
Object |
process(Map.Entry<String,Integer> entry)
Process the entry without worrying about concurrency.
|
getFactoryId, readData, writeData
getBackupProcessor
public int getId()
IdentifiedDataSerializable
public Object process(Map.Entry<String,Integer> 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 © 2015 Hazelcast, Inc.. All Rights Reserved.