|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hazelcast.executor.impl.RunnableAdapter<V>
V - public final class RunnableAdapter<V>
An adapter that adapts a Runnable to become a Callable.
| Constructor Summary | |
|---|---|
RunnableAdapter()
|
|
RunnableAdapter(Runnable task)
|
|
| Method Summary | |
|---|---|
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)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RunnableAdapter()
public RunnableAdapter(Runnable task)
| Method Detail |
|---|
public Runnable getRunnable()
public void setRunnable(Runnable runnable)
public V call()
throws Exception
call in interface Callable<V>Exceptionpublic void setHazelcastInstance(HazelcastInstance hazelcastInstance)
HazelcastInstanceAware
setHazelcastInstance in interface HazelcastInstanceAwarehazelcastInstance - the HazelcastInstance reference
public void writeData(ObjectDataOutput out)
throws IOException
DataSerializable
writeData in interface DataSerializableout - output
IOException
public void readData(ObjectDataInput in)
throws IOException
DataSerializable
readData in interface DataSerializablein - input
IOExceptionpublic int getFactoryId()
IdentifiedDataSerializable
getFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializable
getId in interface IdentifiedDataSerializablepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||