public final class GetAttributeEntryProcessor extends Object implements EntryProcessor<String,SessionState>, IdentifiedDataSerializable
Constructor and Description |
---|
GetAttributeEntryProcessor() |
GetAttributeEntryProcessor(String attributeName) |
Modifier and Type | Method and Description |
---|---|
EntryBackupProcessor<String,SessionState> |
getBackupProcessor()
Get the entry processor to be applied to backup entries.
|
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Data |
process(Map.Entry<String,SessionState> 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
|
public GetAttributeEntryProcessor(String attributeName)
public GetAttributeEntryProcessor()
public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public Data process(Map.Entry<String,SessionState> 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<String,SessionState>
entry
- entry to be processedpublic EntryBackupProcessor<String,SessionState> getBackupProcessor()
EntryProcessor
getBackupProcessor
in interface EntryProcessor<String,SessionState>
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
Copyright © 2016 Hazelcast, Inc.. All Rights Reserved.