public class WorkUnit extends Object implements com.hazelcast.nio.serialization.DataSerializable, Serializable
A workflow instance refNum is guaranteed to be not null, because every work unit
is related to a workflow instance.
The type is never null and defines the kind of action that is to be taken.
The work item refNum may be null, if the WorkType.START_WORKFLOW and WorkType.ABORT_WORKFLOW.
These actions are not related to a particular work item.
It implements the DataSerializable interface because it is held in the
distributed HazelCast queue for load balancing among threads and cluster nodes.
| Constructor and Description |
|---|
WorkUnit() |
| Modifier and Type | Method and Description |
|---|---|
WorkType |
getType() |
Long |
getWoinRefNum() |
Long |
getWoitRefNum() |
void |
readData(com.hazelcast.nio.ObjectDataInput objectDataInput) |
void |
setType(WorkType type) |
void |
setWoinRefNum(Long woinRefNum) |
void |
setWoitRefNum(Long woitRefNum) |
String |
toString() |
void |
writeData(com.hazelcast.nio.ObjectDataOutput objectDataOutput) |
public Long getWoinRefNum()
public void setWoinRefNum(Long woinRefNum)
public WorkType getType()
public void setType(WorkType type)
public Long getWoitRefNum()
public void setWoitRefNum(Long woitRefNum)
public void writeData(com.hazelcast.nio.ObjectDataOutput objectDataOutput)
throws IOException
writeData in interface com.hazelcast.nio.serialization.DataSerializableIOExceptionpublic void readData(com.hazelcast.nio.ObjectDataInput objectDataInput)
throws IOException
readData in interface com.hazelcast.nio.serialization.DataSerializableIOExceptionCopyright © 2018. All rights reserved.