public class AddSessionEntryProcessor extends AbstractWebDataEntryProcessor<Integer>
null
value, this
processor does nothing.
This EntryProcessor
is only intended to be used when the first node in the cluster creates a
given session. After that, when a new node in the cluster creates a local "copy" of the clustered session,
ReferenceSessionEntryProcessor
should be used to increment the reference count.Constructor and Description |
---|
AddSessionEntryProcessor() |
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 © 2014 Hazelcast, Inc.. All Rights Reserved.