public final class RunnableAdapter<V> extends Object implements IdentifiedDataSerializable, Callable<V>, HazelcastInstanceAware
| Constructor and Description |
|---|
RunnableAdapter() |
RunnableAdapter(Runnable task) |
| Modifier and Type | Method and Description |
|---|---|
V |
call() |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
Runnable |
getRunnable() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance) |
void |
setRunnable(Runnable runnable) |
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public RunnableAdapter()
public RunnableAdapter(Runnable task)
public Runnable getRunnable()
public void setRunnable(Runnable runnable)
public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance in interface HazelcastInstanceAwarepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionpublic int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializableCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.