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()
NamedTask
DuplicateTaskException
will be thrown and the task will be rejected.public int getFactoryId()
IdentifiedDataSerializable
getFactoryId
in interface IdentifiedDataSerializable
public int getId()
IdentifiedDataSerializable
getId
in interface IdentifiedDataSerializable
public void writeData(ObjectDataOutput out) throws IOException
DataSerializable
writeData
in interface DataSerializable
out
- outputIOException
public void readData(ObjectDataInput in) throws IOException
DataSerializable
readData
in interface DataSerializable
in
- inputIOException
Copyright © 2018 Hazelcast, Inc.. All Rights Reserved.