com.hazelcast.web.entryprocessor
public final class GetAttributeNamesEntryProcessor extends Object implements EntryProcessor<String,SessionState>, IdentifiedDataSerializable, JvmIdAware
Constructor and Description |
---|
GetAttributeNamesEntryProcessor() |
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.
|
String |
getJvmId() |
Object |
process(Map.Entry<String,SessionState> entry)
Process the entry without worrying about concurrency.
|
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setJvmId(String jvmId)
Sets jvm id.
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public String getJvmId()
public void setJvmId(String jvmId)
JvmIdAware
setJvmId
in interface JvmIdAware
jvmId
- the jvm idpublic int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public Object 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 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 © 2015 Hazelcast, Inc.. All Rights Reserved.