Class WorkerSummary
java.lang.Object
co.yellowdog.platform.model.WorkerSummary
- All Implemented Interfaces:
Serializable
A summary of a group of workers.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionWorkerSummary(Map<WorkerStatus, Long> statusCounts, int claimedWorkerCount, Instant lastClaimedTime, Instant lastReleasedTime, Instant lastUpdatedTime) Creates a newWorkerSummaryinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic WorkerSummary.Builderbuilder()protected booleanbooleanintThe number of workers that are claimed.The last time one of these workers was claimed.The last time one of these workers was released.The last time this summary was updated.The number of workers in each status.inthashCode()voidsetClaimedWorkerCount(int claimedWorkerCount) The number of workers that are claimed.voidsetLastClaimedTime(Instant lastClaimedTime) The last time one of these workers was claimed.voidsetLastReleasedTime(Instant lastReleasedTime) The last time one of these workers was released.voidsetLastUpdatedTime(Instant lastUpdatedTime) The last time this summary was updated.voidsetStatusCounts(Map<WorkerStatus, Long> statusCounts) The number of workers in each status.toString()
-
Constructor Details
-
WorkerSummary
public WorkerSummary() -
WorkerSummary
public WorkerSummary(Map<WorkerStatus, Long> statusCounts, int claimedWorkerCount, Instant lastClaimedTime, Instant lastReleasedTime, Instant lastUpdatedTime) Creates a newWorkerSummaryinstance.- Parameters:
statusCounts- The number of workers in each status.claimedWorkerCount- The number of workers that are claimed.lastClaimedTime- The last time one of these workers was claimed.lastReleasedTime- The last time one of these workers was released.lastUpdatedTime- The last time this summary was updated.
-
-
Method Details
-
builder
-
getStatusCounts
The number of workers in each status. -
getClaimedWorkerCount
public int getClaimedWorkerCount()The number of workers that are claimed. -
getLastClaimedTime
The last time one of these workers was claimed. -
getLastReleasedTime
The last time one of these workers was released. -
getLastUpdatedTime
The last time this summary was updated. -
setStatusCounts
The number of workers in each status. -
setClaimedWorkerCount
public void setClaimedWorkerCount(int claimedWorkerCount) The number of workers that are claimed. -
setLastClaimedTime
The last time one of these workers was claimed. -
setLastReleasedTime
The last time one of these workers was released. -
setLastUpdatedTime
The last time this summary was updated. -
equals
-
canEqual
-
hashCode
-
toString
-