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.10.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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
@NotNull Integer
Number of items processed so far.@Valid OffsetDateTime
Zoned date-time when the task started.getTotal()
Total number of items to process.@NotNull String
getType()
Type of the task.@NotNull @Valid UUID
getUuid()
UUID of the task; this, combined with type, is used to uniquely identify the task.int
hashCode()
void
setProgress
(Integer progress) void
setStartedAt
(OffsetDateTime startedAt) void
void
void
startedAt
(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
-
equals
-
hashCode
public int hashCode() -
toString
-