Package org.tailormap.api.admin.model
Class TaskProgressEvent
java.lang.Object
org.tailormap.api.admin.model.TaskProgressEvent
- All Implemented Interfaces:
Serializable
@Generated(value="org.openapitools.codegen.languages.SpringCodegen",
comments="Generator version: 7.17.0")
public class TaskProgressEvent
extends Object
implements Serializable
Task progress event. This event is sent when a _running_ task makes progress, including start/stop. The fraction of the task that is done can be computed using `progress` and `total` (if not null).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean@NotNull IntegerNumber of items processed so far.@Valid OffsetDateTimeZoned date-time when the task started.Additional data for the task.getTotal()Total number of items to process.@NotNull StringgetType()Type of the task.@NotNull @Valid UUIDgetUuid()UUID of the task; this, combined with type, is used to uniquely identify the task.inthashCode()putTaskDataItem(String key, Object taskDataItem) voidsetProgress(Integer progress) voidsetStartedAt(OffsetDateTime startedAt) voidsetTaskData(Map<String, Object> taskData) voidvoidvoidstartedAt(OffsetDateTime startedAt) toString()
-
Constructor Details
-
TaskProgressEvent
public TaskProgressEvent()
-
-
Method Details
-
type
-
getType
Type of the task.- Returns:
- type
-
setType
-
uuid
-
getUuid
UUID of the task; this, combined with type, is used to uniquely identify the task.- Returns:
- uuid
-
setUuid
-
total
-
getTotal
Total number of items to process. May be `null` or empty if unknown.- Returns:
- total
-
setTotal
-
progress
-
getProgress
Number of items processed so far.- Returns:
- progress
-
setProgress
-
startedAt
-
getStartedAt
Zoned date-time when the task started.- Returns:
- startedAt
-
setStartedAt
-
taskData
-
putTaskDataItem
-
getTaskData
Additional data for the task.- Returns:
- taskData
-
setTaskData
-
equals
-
hashCode
public int hashCode() -
toString
-