public class Echo extends Object implements Callable<String>, DataSerializable, HazelcastInstanceAware
| Modifier and Type | Method and Description |
|---|---|
String |
call() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance)
Gets the HazelcastInstance reference when submitting a Runnable/Callable using Hazelcast ExecutorService.
|
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public Echo(String input)
public void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic void setHazelcastInstance(HazelcastInstance hazelcastInstance)
HazelcastInstanceAwaresetHazelcastInstance in interface HazelcastInstanceAwarehazelcastInstance - the HazelcastInstance referenceCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.