public class TaskDefinition<V> extends Object implements IdentifiedDataSerializable
| Modifier and Type | Class and Description |
|---|---|
static class |
TaskDefinition.Type |
| Constructor and Description |
|---|
TaskDefinition() |
TaskDefinition(TaskDefinition.Type type,
String name,
Callable<V> command,
long initialDelay,
long period,
TimeUnit unit) |
TaskDefinition(TaskDefinition.Type type,
String name,
Callable<V> command,
long delay,
TimeUnit unit) |
| Modifier and Type | Method and Description |
|---|---|
Callable<V> |
getCommand() |
int |
getFactoryId()
Returns DataSerializableFactory factory id for this class.
|
int |
getId()
Returns type identifier for this class.
|
long |
getInitialDelay() |
String |
getName() |
long |
getPeriod() |
TaskDefinition.Type |
getType() |
TimeUnit |
getUnit() |
void |
readData(ObjectDataInput in)
Reads fields from the input stream
|
String |
toString() |
void |
writeData(ObjectDataOutput out)
Writes object fields to output stream
|
public TaskDefinition()
public TaskDefinition(TaskDefinition.Type type, String name, Callable<V> command, long delay, TimeUnit unit)
public TaskDefinition(TaskDefinition.Type type, String name, Callable<V> command, long initialDelay, long period, TimeUnit unit)
public TaskDefinition.Type getType()
public String getName()
public long getInitialDelay()
public long getPeriod()
public TimeUnit getUnit()
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 © 2017 Hazelcast, Inc.. All Rights Reserved.