V - public final class RunnableAdapter<V> extends Object implements IdentifiedDataSerializable, Callable<V>, HazelcastInstanceAware, PartitionAware
| 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. | 
| Object | getPartitionKey()The key that will be used by Hazelcast to specify the partition. | 
| Runnable | getRunnable() | 
| 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 | 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 Object getPartitionKey()
PartitionAwaregetPartitionKey in interface PartitionAwarepublic void setHazelcastInstance(HazelcastInstance hazelcastInstance)
HazelcastInstanceAwaresetHazelcastInstance in interface HazelcastInstanceAwarehazelcastInstance - the HazelcastInstance referencepublic 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.