public class NamedTaskDecorator<V> extends Object implements Runnable, Callable<V>, NamedTask, IdentifiedDataSerializable
| 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.
|
String |
getName()
Returns the name of the task.
|
static <V> Callable<V> |
named(String name,
Callable<V> callable) |
static Runnable |
named(String name,
Runnable runnable) |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
void |
run() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public String getName()
NamedTaskDuplicateTaskException will be thrown and the task will be rejected.public int getFactoryId()
IdentifiedDataSerializablegetFactoryId in interface IdentifiedDataSerializablepublic int getId()
IdentifiedDataSerializablegetId in interface IdentifiedDataSerializablepublic void writeData(ObjectDataOutput out) throws IOException
DataSerializablewriteData in interface DataSerializableout - outputIOExceptionpublic void readData(ObjectDataInput in) throws IOException
DataSerializablereadData in interface DataSerializablein - inputIOExceptionCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.