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() |
int |
getId() |
Runnable |
getRunnable() |
void |
readData(ObjectDataInput in) |
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance) |
void |
setRunnable(Runnable runnable) |
String |
toString() |
void |
writeData(ObjectDataOutput out) |
public RunnableAdapter()
public RunnableAdapter(Runnable task)
public Runnable getRunnable()
public void setRunnable(Runnable runnable)
public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance
in interface HazelcastInstanceAware
public void writeData(ObjectDataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public void readData(ObjectDataInput in) throws IOException
readData
in interface DataSerializable
IOException
public int getFactoryId()
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
getId
in interface IdentifiedDataSerializable
Copyright © 2014 Hazelcast, Inc.. All rights reserved.